okay I did catch a failure, maybe you can help me understand why its failing here.
I then put a break at the MessageBox show and when it hit that I checked the output string and it had this:
tmpstrm << output;
MessageBox::Show("Stream failure.", "stream write failed.", MessageBoxButtons::OK);
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?
[24;1Hction Type | Sales | Tax | Total | Count | Check |
|Vending: Currency Cash | 2.50 | . | 2.50 | 2 | 1.25 |
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.