The documentation is lacking in description of the file commands. These may be stupid questions, but, I don't quite understand the usage of some of the commands. For instance, say I would like to save some values in a file called "test.test". So, I start the code like so:
if ( !dbFileExist ( ) )
{
dbOpenToWrite ( 1, "test.test" );
}
else
dbText ( 10, 10, "Error. File already exist." );
Then, I want to save a vector of vectors of integers ( multi-dimensional vector of integers ) to the file. The documentation doesn't give any information about exactly how the information is saved, so, I don't really know how it will work if I implement the following code:
for ( int x = 0; x < vector.size ( ); x++ )
{
for ( int y = 0; y < vector[x].size ( ); y++ )
dbWriteWord ( 1, vector[x][y] );
}
Will I just be able to read the values with this loop?
for ( int x = 0; x < vector.size ( ); x++ )
{
for ( int y = 0; y < vector[x].size ( ); y++ )
dbReadWord ( 1, vector[x][y] );
}
If anyone can verify this working, or give details to how the functions work, I would greatly appreciate it.