okay I did catch a failure, maybe you can help me understand why its failing here.
Code:
To_string(tmp, output);
tmpstrm << output;
if(tmpstrm.fail()){
MessageBox::Show("Stream failure.", "stream write failed.", MessageBoxButtons::OK);
}
I then put a break at the MessageBox show and when it hit that I checked the output string and it had this:
Code:
[24;1Hction Type | Sales | Tax | Total | Count | Check |
|__________________________|__________|_________|__________|________|_________|
|Vending: Currency Cash | 2.50 | . | 2.50 | 2 | 1.25 |
|_________
If it helps any, this is coming out of a pipe from Plink (command line PuTTy for telnet). It seems like its getting other lines formatted similarly without problem. Do you think there might be some special character its catching which is screwing up the stream when I write it?
EDIT: Sorry I should also add that To_string() converts a System::String^ to a std::string since I guess you can use System::String^ in a filestream.
thanks