-->
Page 1 of 1

Weird create file problem -ESP-12S issue?

PostPosted: Sun Jan 22, 2017 2:08 am
by Xcess
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!