Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: ACagliano on December 21, 2010, 10:17:03 am

Title: Help with Files
Post by: ACagliano on December 21, 2010, 10:17:03 am
I know that Axe has support for creating files of variables in Archive, so that they can be read (y-vars), but I am not quite sure how to create the files, then how to reference, read from, and write to them once they have been created. Help, anyone?
Title: Re: Help with Files
Post by: Munchor on December 21, 2010, 10:33:15 am
Code: [Select]
:"appvNAME"?Str1
:GetCalc(Str1)??
:!If ?
:UnarchiveStr1
:GetCalc(Str1)??End
:!If ?
:GetCalc(Str1,[desired size])??END

Take a look at that code...

Also, check this topic (http://ourl.ca/8402). That topic has quite a lot of information, the above code was very useful to me :)
Title: Re: Help with Files
Post by: ACagliano on December 21, 2010, 10:41:08 am
Yes. I know how to do that. But, I'm referring something else, involving not Unarchiving the variable. It involves the variables Y1-Y0.
Title: Re: Help with Files
Post by: Fast Crash on December 21, 2010, 01:16:33 pm
by using files Y0 Y1 ... you can only read the appvar (not store numbers in it)
Code: [Select]
Getcalc(NAME",Y0)
Disp {Y0}r>Dec
Disp {Y0+1}>Dec
...
Title: Re: Help with Files
Post by: ACagliano on December 21, 2010, 01:17:48 pm
Ah, ok. That would help for games, when I need to read from a map without editing it.

Does Y0 take up RAM?
Title: Re: Help with Files
Post by: Fast Crash on December 21, 2010, 01:25:33 pm
i don't know, but i don't think so (it wouln't be interesting  :P )
Title: Re: Help with Files
Post by: Builderboy on December 21, 2010, 01:31:13 pm
They do take up some RAM, but i believe they are in a secret free memory spot hidden in the OS, so they use up none of the L1-L6 pieces of RAM, nor do they use up any of user RAM

Note that with the Y1 files, you can only read from archive, you cannot create files, delete files, or much anything else wesides read from archive.