def read_file(filename):
    """
    Read a text file and store all lines into a list.
    
    Arguments:
    filename -- file name.
    
    Returns:
    lines -- a list contain all lines in the file.
    """
    with open(filename, 'r') as open_file:
        lines = open_file.read().splitlines()
    return lines