Hi,
I am sorry to ask for help, but the reference does not make this clear to me: I want to write and read a header-like structure with several different variable types. Such as:
I assume that I might want to make a class, but none of the read/write commands seem appropriate.
Any hints would be welcome.
I am sorry to ask for help, but the reference does not make this clear to me: I want to write and read a header-like structure with several different variable types. Such as:
- // Create Test File
- // File
- string [8] filemeta_name="Temview";
- byte filemeta_version=1;
- string[32] filemeta_owner = "Your Name Here."
- int filemeta_layer=0;
- int filemeta_sizex=16;
- int filemeta_sizey=16;
- int filemeta_locationx=0;
- int filemeta_locattony=0;
- int filemeta_lookatx = 0;
- int filemeta_lookatx = 0;
- long filemeta_crc =0xffffff; // Dummy, at this point.
- void draw
- {
- savebytes ("temview.tvu", filemeta_name);
- savebytes ("temview.tvu", filemeta_version);
- savebytes ("temview.tvu", filemeta_owner);
- savebytes ("temview.tvu", filemeta_name);
- savebytes ("temview.tvu", filemeta_layer);
- savebytes ("temview.tvu", filemeta_sizex);
- savebytes ("temview.tvu", filemeta_sizey);
- savebytes ("temview.tvu", filemeta_locationx);
- savebytes ("temview.tvu", filemeta_locattony);
- savebytes ("temview.tvu", filemeta_lookatx);
- savebytes ("temview.tvu", filemeta_crc);
- exit();
- }
I assume that I might want to make a class, but none of the read/write commands seem appropriate.
Any hints would be welcome.
1