def readLinesFromFile(filename):
    """
    Returns the read file as a list of strings.
    Each element of the list represents a line.
    On error it returns None.
    """
    try:
        with open(filename, "r") as input_file:
            lines = input_file.readlines()
        return lines

    except EnvironmentError:
        return None