Re: Array file I/O
- From: Thomas Robitaille <no@xxxxxxxx>
- Date: Tue, 30 Sep 2008 17:13:26 +0100
In article
<no-9E1904.16521430092008@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Thomas Robitaille <no@xxxxxxxx> wrote:
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 :-)
.
Relevant Pages
- Re: rank mismatch for unused dummy arguments
... access array elements ... type character with the C character kind, or is an element or substring ... of an element of an array that is not an assumed-shape or pointer array. ... but for assumed size rank is not required ... (comp.lang.fortran) - Arrays
... ArrayElement(String[] names, int index, String value) - is it OK? ... In the Main method define a String array called names and initialize it ... iterate through the array elements and print the array ... in the replaceArrayElement() method use the index to identify the array ... (comp.lang.java.help) - Re: What does Tcl lack?
... > traces on array elements, ... > If some Tk problem is solved very well with traces ... If the only good reason is to free up the syntax sugar for dicts, ... (comp.lang.tcl) - Re: gfortran & adjustable array: most values remain zero
... first n-1 dimensions of an n-dimensional array must match between caller ... the ranks don't even have to match, must less the dimensions. ... If the first dimensions of the actual and dummy ... the resulting correspondence of array elements is ... (comp.lang.fortran) - Re: Storing _Bool in a single bit
... >>> The problem that I see, from a standards point of view, is the sizeof ... Each element of an array has to have a distinct address. ... You can't pack array elements tighter than 1 per byte ... (comp.std.c) |
|