Open wdigger opened 8 years ago
On windows (VS 2015) read(...) from file opened in text mode removes all '\r' symbols from result buffer (size of result really smaller then real file size), but leaves garbage (uncleaned content with '\r\n') in the buffer end.
In fact error is occurred in other place, you may reject this request or i may to modify it with fix of bcRead.
String truncated with size of really readed data.
Thanks for your pull request @wdigger! Just a question: in which case would you have file lines ending with
\n\r
or\r
only? Because it seems to me that this is what your PR is solving, right?