Can anyone tell me the expression which saves all data stored in the array into a file at the location of the MFA... been too long since i used one and i just forgot how... woopsie.:D
Printable View
Can anyone tell me the expression which saves all data stored in the array into a file at the location of the MFA... been too long since i used one and i just forgot how... woopsie.:D
Appdrive$ + Appdir$ + "save.arr"
You should use Apppath$ instead of Appdrive$ + Appdir$.
Really? I didn't know Apppath$ existed... useful to know ;)
really? I've always used Drive+dir and its always worked fine. /shrug
It would work fine, it's just a waste of a string concatenation..
Although Appdrive$ + Appdir$ won't make a noticable difference in speed than using Apppath$, It's an important habit to always go for the most efficient way to solve a problem. At least my experience is that people who care about those nonsense-issues become much better programmers than those who think "The difference is so small that nobody will notice, so I don't have to care!".
All the small differences mount up and you end up with a slow application.
Just like the saying 'every penny counts'. :DQuote:
Originally Posted by Jamie
I've been able to save files just by doing Appdir$ + "arr.txt" for example. Any reason why I should do that differently? It saves it in the directory of the app.