array2file / file2array

Previous topic - Next topic

Marmor

flen = getfilesize(xyz)
DIM dat% [flen]
file2array (xyz,dat%)
and reverse....

what do you think about the idea ?

mentalthink

Hi think it´s nice idea... for write quikly into a file... I only add the string for the name file...

PS: A don´t understand well the code, because you say getfilesize, but i suppose it´s for get the data of the .txt or dat and put into an array?¿...


Kitty Hello

You eant to serialize an array. Int/float/string OK?
Binary or ascii?

MrTAToad

Would probably have to be a version for each type of variable.  Will be be comma seperated or not though ?

Marmor

are not all just bytes?
the array definition, I would let the programmer ?