def pdb_names2list(pdb_files_textfile):

    """
    Convert a file that contains names in each line into an element of a list 

    Args:
        pdb_files_testfile (str) : Full / relative path to the text file 

    Returns:
        A List where the i^(th) element is the i^(th) line in the test file
    """
    
    with open(pdb_files_textfile,'r') as rf:
        pdb_files = rf.read().split('\n')
        pdb_files = [item for item in pdb_files if item.endswith('.pdb')] 
        
    return pdb_files