def numbers_from_file(path):
    """ Read file with numbers and save them to list
    :param path: [string] - path to file with test numbers
    :return: [list] numbers from file or [None] if failed to read file
    """

    result = list()
    try:
        for line in open(path):
            result.append(int(line))
    except OSError:
        print("Failed to create array")
        return None

    return result