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

Array file I/O

P: n/a
Hello,

I'm trying to write an array to a file, and I want to later read it in
again. Some of the array elements are themselves arrays. I would also
like to preserve the keys of the array elements. Is there a simple way
to do this? (some kind of dump to file function).

Thanks in advance for any help.
Sep 30 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article
<no**********************@fl1-122-134-80-194.fks.mesh.ad.jp>,
Thomas Robitaille <no@spam.comwrote:
Hello,

I'm trying to write an array to a file, and I want to later read it in
again. Some of the array elements are themselves arrays. I would also
like to preserve the keys of the array elements. Is there a simple way
to do this? (some kind of dump to file function).

Thanks in advance for any help.
I figured it out, I can simply use serialize and unserialize :-)
Sep 30 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.