Click here to Skip to main content
15,913,487 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a array in VB with this statement

VB
Dim Gamedata(5000,500)


I can write and read to the array with no problems. Can anyone give me an idea how to save this array to a file for storage. Then load it back in for use with the program is restarted. The data never changes its placed into the array once then just read during use.

Nothing I have read so far has giving a file format or any idea how to create a file for storing the information.

Any help would be appreciated

Dr David Johnson


Sorry, Yes VB6 however I would like it to be upwards compatible to VB11 if possible. Next I am very new to programming and have several books on VB6. However even though I can create the array and write to in and read from it no where can I find out how to save the data in the array to a file when you close the program.If its a text file when you save it out how do you create separators between the data?

Thanks again
Posted
Updated 5-Jun-12 13:33pm
v3
Comments
Sergey Alexandrovich Kryukov 5-Jun-12 16:59pm    
First of all, what do you mean by "VB". Isn't it VB6?
What's the problem? Don't search information on how to store/load the array, look how to read/write the file, text or binary. The answer depends on what you are using.
--SA
Sandeep Mewara 6-Jun-12 8:46am    
Question updated by OP.

1 solution

what about vb6 put function did you try it;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900