Jul-21-2017, 08:50 PM
(This post was last modified: Jul-21-2017, 09:02 PM by sparkz_alot.)
Hello,
I am trying to create a text file and write to the text file, like a data log, from my python program. However, when I try to do so it seems the "write" method is not working. The text file gets created the way it should but there is no writing inside the log file. Please help.
Here is a simple example of this which I have tried:
I am trying to create a text file and write to the text file, like a data log, from my python program. However, when I try to do so it seems the "write" method is not working. The text file gets created the way it should but there is no writing inside the log file. Please help.
Here is a simple example of this which I have tried:
f = open(“testfile.txt”,”w”) f.write(“Hello World”) f.close()