Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Folders in folders
Post: RE: Folders in folders

Great! I will try this - Thanks!
jenost General Coding Help 5 2,862 Apr-26-2020, 05:35 PM
    Thread: Folders in folders
Post: Folders in folders

Hi! Trying to create three different sub-folders named: "raw" "right" and "left" in one folder named from a txt file. I succeeded to make one sub-folder, "raw" in each. import os path = '/raw' with ...
jenost General Coding Help 5 2,862 Apr-26-2020, 10:44 AM
    Thread: sub-folders in folders from text line
Post: sub-folders in folders from text line

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? import os with open('text.txt') as x: *creates folders...
jenost General Coding Help 1 1,579 Mar-31-2020, 06:59 AM
    Thread: writing to file
Post: RE: writing to file

(Dec-21-2019, 06:53 PM)DreamingInsanity Wrote: You can do something like this: lines = infile.readlines() #put all the lines in an array sizeOfGroups = 2 if len(lines) % sizeOfGroups == 1: #if it's ...
jenost General Coding Help 3 2,594 Dec-21-2019, 07:43 PM
    Thread: writing to file
Post: writing to file

**huh** newbie to this! Trying to write to a new text-file, formatted in a specific way: The first, source, text-file is containing a list of nubmers in columns. 000123456 000123457 000123458 0001234...
jenost General Coding Help 3 2,594 Dec-21-2019, 06:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020