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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.