Robin2:
A simple solution might be to store your data as fixed length strings and then you could retrieve the Nth string by skipping the appropriate number of bytes....R
I second that (that is, I support this solution).
Use a standard C function called sprint() to format the numbers to be stored and use sscanf() to read them back.
Tutorials on my blog: