def parser(file):
    """ Parses the simulation settings from file """
    # Our file is remarkably simple: it just contains one integer
    #
    # The parser just extracts that number ...
    val = open(file, 'r').read()

    # ... and returns it as an integer
    return(int(val))