I have a bunch of code that I am porting from Builder 5 to Builder 6. Code that worked fine under BCB5 crashes (throws an exception, really) in the fstream fstream::getline() method. It appears that the stream is trying to access a locale facet that does not exist in the process of executing a call to fstream::widen('\n).
The file in question is a simple ASCII file that has recently been extracted from a blob field of a Paradox db using the SaveToFile() method.
I have tried explicitly setting the locale to classic C locale with no apparent effect.
What is weird that I can read the file with a TRichEdit object just fine, but getline() fails...
What ever happened to nice simple ASCII I/O anyhow? (No offense intended to the several billion people who use non-latin character sets!)
The file in question is a simple ASCII file that has recently been extracted from a blob field of a Paradox db using the SaveToFile() method.
I have tried explicitly setting the locale to classic C locale with no apparent effect.
What is weird that I can read the file with a TRichEdit object just fine, but getline() fails...
What ever happened to nice simple ASCII I/O anyhow? (No offense intended to the several billion people who use non-latin character sets!)