By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,971 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,971 IT Pros & Developers. It's quick & easy.

Save an Array Variable to a file (simple way)

P: 2
I am trying to save a integer array variable to a file.
I am looking for the easier way to do this then going through all items and converting them to a str and then saving them as a text file.

All data transaction is only done in the array and not on the file. so its just
to dump the data onto a file and read it back into the array next time.
Looking for somthing like a method

ArrayVariableInteger.SaveToFile

Is there such a easy method?

Thanks
Jul 30 '08 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
there is no such direct method.

If you want define it yourself as per requirment or use filehandling methods to write to file.
Jul 30 '08 #2

P: 6
You Must first create Class with this method. and then use it forever.
for example

public shared sub SaveToFile(byval arr as integer(), byval Filename as string )
.....
Here is your code
....
end sub


I think you can do it. if not I will help.
Jul 30 '08 #3

P: 2
Thanks all for the quick input, i just wanted to be sure there is no easy way befor i take the long way.
Jul 30 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.