How to read 'results' fromat in C++
Posted by chenyanpei on Aug 04, 2011; 6:06pm
URL: http://imagej.273.s1.nabble.com/How-to-read-results-fromat-in-C-tp3683616.html
Hello everyone !
I want to use the C++ program to read the results.txt of ImageJ. But after load the data seem so strange: Here is the C++ code :
int main() {
double Length, Width, LStrip, WStrip, NLStrip, NWStrip, NMeshLstrip, NMeshWstrip;
double test[48];
if(!experData){
cout << "Unable to open myfile";
exit(1); // terminate with error
}
while (! experData.eof()){
experData>>Length>>test[1]>>Width>>LStrip>>WStrip>> NLStrip>>NWStrip;
cout <<NWStrip<<"\n";
}
But the Output of NWStrips is 5.56182e-308. But I do not have this data in my files. How to read the" results" format file? Thank you