I have a textfile containing a list of file paths, which I want to access with Python, copy and paste into a new folder.
The file path list looks like this:
filepath1
filepath2
...
All files should be copied and pasted into a new folder (output_folder). How can I achieve this?
My code so far:
for filename in textfile:
text=filename.read()
for line in text:
line=filepath
#move filepath?