I was trying to save data in ice but it was not working, so i kept trying however it still did not work. I hope anyone can help me.
I begin with
Open("TEST","w+")
and erase the program
Then i do
Open("TEST","r+")
and
Write(5,1,1,1)
then erase it
and finally
Open("TEST","r+")
Read("TEST",1,1,1)->A
Disp A
Pause

Sometimes it displays 1 instead of zero but it never changes the number to what i want it to be
Coding_guy___ wrote:
I was trying to save data in ice but it was not working, so i kept trying however it still did not work. I hope anyone can help me.
I begin with
Open("TEST","w+")
and erase the program
Then i do
Open("TEST","r+")
and
Write(5,1,1,1)
then erase it
and finally
Open("TEST","r+")
Read("TEST",1,1,1)->A
Disp A
Pause

Sometimes it displays 1 instead of zero but it never changes the number to what i want it to be

i replaced "TEST" with °A and removed the ->A
still doesnt work
You'll need to take the pointer of the data you want to write, too:

Code:
5→A
Open("TEST","w")→F
Write(°A,3,1,F)
// ...
Open("TEST","r")→F
Read(°A,3,1,F)
Disp A
Pause
  
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