Save/load data to a file

nobody somebody at somewhere.com
Sun Nov 16 07:55:16 PST 2008


I would like to be able to save and load a lot of data to/from a file. (in 
D1)
For example a struct like this:

struct Fruit
{
    int banana;
    double[][] orange;
    bool[] apple;
}

Practically all the examples that I've come across only deal with saving and 
loading text, so I'm having a hard time dealing with saving/loading 
arrays/floats/bools/etc.

What would be a good way to do this? 




More information about the Digitalmars-d-learn mailing list