I looked at both the string API and read/write API:
http://docs.coronalabs.com/api/library/string/index.html
http://docs.coronalabs.com/guide/data/readWriteFiles/index.html
I was wondering if there was a way to write specified stats to a files that is similar to C++/Java
C++:
string tempValue
while (true) {
cout>>“enter state”
cin<<tempValue + “/t/n”;
outFile<<tempValue
}
A way to write a text file to look like this, stats then separated by a tab
HP: 150
SP: 300
So that when I read it out, I can scan for specific stats separated by tabs
So far, I’ve been able to just read it out correctly using a janky method:
johnSmith
150
1540
232
2323
23232
23232
Using the read by line method