Is it possible if i have several columns to have my output go to. If I want to use column 3 as the storage location of my output files. main_folder below contains folder1,folder2, folder3
C:/Desktop/main_folder/
file.txt
Bob November folder_1
Jon January folder_3
Sam December folder_1
Jane April folder_2
path = /Desktop/main_folder/*
with open('file.txt', 'r') as input:
for lines in input:
line = line.strip()
with open(output, 'w') as outfile:
outfile.write(line, path)
Is it possible to select just column 3 and use that path as output?