Once, again, I apologize for the inane question, I am very much a beginner. How do you read in string (char?) data, and recast it as int?
FILE *stream ;
FILE *stream2 ;
FILE *stream3 ;
int buffer[1024];
int buffer2[1024];
int buffer3[1024];
do{
m_refresh_3 = fread(buffer, sizeof(buffer),25,stream);
m_fpsize = fread(buffer2, sizeof(buffer2), 25, stream2);
m_minpoints = fread(buffer3, sizeof(buffer3),25,stream3);
}while ( !feof(stream3));
fclose(stream);
fclose(stream2);
fclose(stream3);
The above code does not error out, however, he values in each of my three variables is "-858993460".
Thanks in advance for the help.
FILE *stream ;
FILE *stream2 ;
FILE *stream3 ;
int buffer[1024];
int buffer2[1024];
int buffer3[1024];
do{
m_refresh_3 = fread(buffer, sizeof(buffer),25,stream);
m_fpsize = fread(buffer2, sizeof(buffer2), 25, stream2);
m_minpoints = fread(buffer3, sizeof(buffer3),25,stream3);
}while ( !feof(stream3));
fclose(stream);
fclose(stream2);
fclose(stream3);
The above code does not error out, however, he values in each of my three variables is "-858993460".
Thanks in advance for the help.