File I/O - read and write
Posted: Sat Jan 16, 2016 1:23 pm
Great to see a BASIC interpreter on the ESP8266! Last BASIC interpreter I played with was ages ago on the 8051.
The setup notes and flasher got me up & running very quickly.
Trying to work out how to persist data to the flash area on the ESP. The docs relating to File I/O are clear enough but don't seems to show any examples.
I tried a 'writer' program of
print "Writing data"
write "myfile" "ABC123"
print "Written"
followed by another program ...
print "Reader"
read "myfile" a$
print a$
However, the read value for a$ didn't reflect what I thought that I'd written.
Probably just me making some simple error.
Any advice most welcome.
Derek.
The setup notes and flasher got me up & running very quickly.
Trying to work out how to persist data to the flash area on the ESP. The docs relating to File I/O are clear enough but don't seems to show any examples.
I tried a 'writer' program of
print "Writing data"
write "myfile" "ABC123"
print "Written"
followed by another program ...
print "Reader"
read "myfile" a$
print a$
However, the read value for a$ didn't reflect what I thought that I'd written.
Probably just me making some simple error.
Any advice most welcome.
Derek.