def get_lines_from_file(loc):
    """Reads the file and returns a list with every line.
    
    Parameters:
        loc (str): location of the file.
    
    Returns:
        list: list containing each of the lines of the file.
    """
    
    f = open(loc)
    result= [line.replace("\n", "") for line in f]
    f.close()
    return result