Hi All,
Writing values to a file as text separated with a comma works fine.
But for the inverse I can use some help:
retrieving these text values, one by one, and addressing them as a numeric value back to a variable, sounds unclear for me. I couldn't find anywhere a usefull demo...
Can somebody give me an example of (pseudo)code that will do? Thanks ahead!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
iv00 =fopen( "C:\\FM\\Data\\Info_00.txt","w"); // This writes the values to a text file
////////////////////////////////////////
for( y =0; y <Y; y++) {
for( x =0; x <X; x++) {
////////////////////////////////////////
iA0 =getArray( 0, x, y, 0);
if( x ==X -1) {
fprintf( iv00, "%d\n", iA0); } // new line
else {
fprintf( iv00, "%d,", iA0); } // comma separator
////////////////////////////////////////
}} // End_for_y, x
////////////////////////////////////////
fclose( iv00);
And gives something like this as result:
24312,24365,24896,20774,17107,18041,17273, ...