Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
shadey
16
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 14th Jun 2012 19:23
how do i write a string array to a file and read it back?
so say i have name$(50) and each one has a name in, then i wanna write all 50 to a file and read them back into the array
also does the security of windows vista/7/8 have an effect on reading and writing,i would guess it does,so where is the best place to read/write this file in the case of the latter OS's?!
thanks for any help!

Hail to the king, baby!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jun 2012 17:10
There are many ways to do this - I'll give you the simplest, but if it doesn't cover what you need, then just provide more detail.



The drawbacks of this method are:
- Non-typed arrays only.
- You need to know the size of the array you are loading and pre-create the array to that size.
- It requires 1 file per array,

Login to post a reply

Server time is: 2026-07-11 11:57:43
Your offset time is: 2026-07-11 11:57:43