I've noticed my posts disappear / reappear whether or not I am replying. I have noticed 2 replies show in one area and 3 in the other. I doubt that it's my browser cache as all my data is cleared on exit.
I am doing some data visualization, in which I need to load in an arbitrary number of integers. They will be 16-bit data values, which will be used to represent using a number of different bitmap schemes, such as grayscale, falsecolor, ect. I also want to have a progress indicator, which means I want to load in the data a chunk at a time, in an example case, 2048 integers, making up one line, at which point I want to update my progress indicator class instance variable. If I could read and write my line data object to a file that would be fine, but I don't want to load an entire file without user feedback.
The short story: I, we need to be able to save single bytes, integers, reals, etc, without using Java libraries.
Although I lack diplomacy and tact in these matters, I hope that the message and spirit, of what I am stating, because I feel that Processing will be a better language for it.
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.