vba - Reading and writing structures to a binary file -


using fileput() method saved few arrays of user-defined structure binary file in sequence, seemed work since files have data in them how can read them file array again were?

using fileget() error

unable read beyond end of stream.

fileopen(1, gamename, openmode.binary) fileput(1, currentplayers) fileclose(1) 

and read back

fileopen(1, gamesave, openmode.binary) fileget(1, currentplayers)  'error occurs here fileclose(1) 

you question not complete. 1 of guesses might not resetting file pointer beginning before reading wrote.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -