def printListIntoFile(listOfFiles, fileName):
    with open(fileName, 'w') as f:
        for line in listOfFiles:
            f.write((line + '\n'))
def printListIntoFile(listOfFiles, fileName):
    with open(fileName, 'w') as f:
        for line in listOfFiles:
            f.write((line + '\n'))