GLBasic forum

Main forum => GLBasic - en => Topic started by: Marmor on 2012-Aug-02

Title: array2file / file2array
Post by: Marmor on 2012-Aug-02
flen = getfilesize(xyz)
DIM dat% [flen]
file2array (xyz,dat%)
and reverse....

what do you think about the idea ?
Title: Re: array2file / file2array
Post by: mentalthink on 2012-Aug-02
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?¿...

Title: array2file / file2array
Post by: Kitty Hello on 2012-Aug-02
You eant to serialize an array. Int/float/string OK?
Binary or ascii?
Title: Re: array2file / file2array
Post by: MrTAToad on 2012-Aug-02
Would probably have to be a version for each type of variable.  Will be be comma seperated or not though ?
Title: Re: array2file / file2array
Post by: Marmor on 2012-Aug-02
are not all just bytes?
the array definition, I would let the programmer ?