utils.py
def read_generic_file(filepath):
    """ reads any generic text file into
    list containing one line as element
    """
    text = []
    with open(filepath, 'r') as f:
        for line in f.read().splitlines():
            text.append(line.strip())
    return text
 reads any generic text file into
    list containing one line as element
    
reads any generic text file into
list containing one line as element
reads any generic text file into list containing one line as element
def read_generic_file(filepath):
    text = []
    with open(filepath, 'r') as f:
        for line in f.read().splitlines():
            text.append(line.strip())
    return text
def read_generic_file ( filepath ) : text = [ ] with open ( filepath , 'r' ) as f : for line in f . read ( ) . splitlines ( ) : text . append ( line . strip ( ) ) return text
reads any generic text file into
list containing one line as element
reads any generic text file into list containing one line as element
""" reads any generic text file into
    list containing one line as element
    """
filepath