I know how to write to an existing txt file via Py function, but can you create the file itself from the function, or MUST the txt file already exist?

Recommended Answers

When you open file with 'w' it is automatically created provided you give valid path name.

Jump to Post

All 2 Replies

When you open file with 'w' it is automatically created provided you give valid path name.

Thanks bredren, I noticed that a few hrs ago upon testing. appreciate the feedback though!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.