Array file I/O

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Robitaille

    Array file I/O

    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.
  • Thomas Robitaille

    #2
    Re: Array file I/O

    In article
    <no-9E1904.16521430 092008@fl1-122-134-80-194.fks.mesh.ad .jp>,
    Thomas Robitaille <no@spam.comwro te:
    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 :-)

    Comment

    Working...