Home All Groups Group Topic Archive Search About

File Access & The Novice Programmer

Author
13 Feb 2006 11:26 PM
The Confessor
For my previous project, I stored persistent data from Structures in three
different Random Access files between sessions, but that's not likely to be
an option with this one...

For starters, I'm trying to become more 'class-aware' with my code in this
project. I've declared those global variables which will be written to and
read from files in their own class, named VariableTemplate, and
instantiated it globally with 'Friend Variable as VariableTemplate.'

Additionally, if I use multiple files I'll need to preface the data in each
file with a common randomly-generated number to ensure that all files to be
loaded were written in the same program session, from the same dataset.

I'd be obliged if somebody could point me toward my best option given these 
constraints... and more obliged if they could direct me toward a good
novice-geared reference on the subject.

Author
14 Feb 2006 10:00 PM
DWS
search for guid



Show quoteHide quote
"The Confessor" wrote:

> For my previous project, I stored persistent data from Structures in three
> different Random Access files between sessions, but that's not likely to be
> an option with this one...
>
> For starters, I'm trying to become more 'class-aware' with my code in this
> project. I've declared those global variables which will be written to and
> read from files in their own class, named VariableTemplate, and
> instantiated it globally with 'Friend Variable as VariableTemplate.'
>
> Additionally, if I use multiple files I'll need to preface the data in each
> file with a common randomly-generated number to ensure that all files to be
> loaded were written in the same program session, from the same dataset.
>
> I'd be obliged if somebody could point me toward my best option given these 
> constraints... and more obliged if they could direct me toward a good
> novice-geared reference on the subject.
>