I am planning to add a logging subroutine, which will write variables, etc, to a file. Now, since I know there's going to be a rather big data output (I estimate it around 100mb or a bit more) I was wondering whether it is appropriate to use randomAccess. Thank you.
To write it to randomaccess file is not a problem but the question is if you will know how long each variable is and where to put the pointer for reading the data later. If the logged data is with the same length every write then the reading is simple, but when the length vary - it may be a problem, you'll need to store for each write operation the length, then read first the length and then the data.
Thank you for your reply. Actually, I will not bother with an automatic type of reading. I will simply upload the file to a pc-editor, then filter for some specific variables the behavior of which I'm suspicious of. Thus, if size matters not, I guess it will be fine! Thanks once again.
Still, any chance that I can easily log ALL variables without bothering to do it manually? I mean, create a small routine which somehow will write all activities' variables at once.