Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Xcess
#61337 Hi,

I have been using the following very basic code:
file.open("1.txt","w")
file.writeline("this is a test")
file.close()

I used esp-12 from AI-THINKER. It has been work. Recently, I bought a new esp-12S and starts to get the problem. The symptom is, first time, the code went thru w/o error, but the file didn't created. If I ran the code again, file.writeline("this is a test") will return the following error:

stdin:1:open a file first.

Any ideas?

Thanks in advanced!