As the subject of this post indicates, I’m having trouble getting a stream of data from openFrameworks to save properly in a .txt file.
The weird thing is: The same code works without any problems on a Windows machine when compiled with Code::Blocks.
ifstream in;
ofstream out;
out.open("sample1.txt", ios::app);
out << "Iteration " << txtCounter<<": "<< endl;
out << "overall rt movement = " << movementArray[15] << "; x rt movement = "<< movementArray[13] << "; y rt movement = "<< movementArray[14] <<"; non-abs x position = " << movementArray[16] <<endl;
out << " " << endl;
out << "overall summed = " << tempOverall << endl;
out << "x summed = " << tempX << endl;
out << "y summed = "<< tempY << endl;
out << "non-abs x summed = "<< tempXpos << endl;
out << " " << endl;
tempOverall += movementArray[15];
tempX += movementArray[13];
tempY += movementArray[14];
tempXpos += movementArray[16];
txtCounter +=1;
in.get();
// TEST END
Any great ideas?
Thanks,