Mar-31-2020, 06:59 AM
Hi!
Tips on how to create sub-folders in each one created from an txt dokument. See code example.
Should I also close the text file?
// Jens
Tips on how to create sub-folders in each one created from an txt dokument. See code example.
Should I also close the text file?
import os with open('text.txt') as x: *creates folders named from textdokument* for line in x: line = line.strip() os.mkdir(line) *Here I want to create sub-folder in each folder*Tanks in advance!
// Jens