I want to be able to save bits of data to a file, like a position in a game, so when you quit or turn off the calc, you can load your save point.
Take a look at the FileIOC library from the toolchain, and its examples.
Doc: https://ce-programming.github.io/toolchain/libraries/fileioc.html#fileioc-h
Adriweb wrote:
Take a look at the FileIOC library from the toolchain, and its examples.
Doc: https://ce-programming.github.io/toolchain/libraries/fileioc.html#fileioc-h

I read a bit on the site mentioned, and I tried looking at the examples included with the CE C compiler, but a lot is left to interpretation. Is there a more in-depth example? Could you direct me to somewhere that could explain it? I apologize if this is sort of a stupid question, I'm not very experienced in TI programming.
I'd suggest going to github and download CEdev (or just browse the repo). There's an "examples" folder in there that has plenty of example code snippets of how to use each library in the CE C toolchain.
slimefolf wrote:
I read a bit on the site mentioned, and I tried looking at the examples included with the CE C compiler, but a lot is left to interpretation. Is there a more in-depth example? Could you direct me to somewhere that could explain it? I apologize if this is sort of a stupid question, I'm not very experienced in TI programming.

Which part specifically are you having trouble with? Alternatively you can use the standard C fopen, fwrite/fread, fclose functions as well, which are simple wrappers around the higher-functionality fileioc library.
By the way, because the title of this particular topic is really worrying me, the language the toolchain and its compiler provides is C, not C# - syntactically vaguely similar, conceptually very different.
C++ also works fine (although no STL is shipped), but indeed not C# :p
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement