O_oYes, they don't behave the same on all platforms.
You and MK27 should not be allowed to give advice regarding IO issues at any level.
Do you not realize that a text file, an ASCII file to offer a specific example, is a binary file with a particular interpretation? What about PNG, JPG, and DB3? Do you know any of those file formats? Do you think that they are text files? Ever hear of a "byte order mark" or "variable byte integers"?
By your logic, neither are the standard streams. You should consider other forms of encoding the same character. Take a platform writing EBCDIC instead of ASCII. The EBCDIC text file produced by one platform is not "native" to platform expecting ASCII.Yes, they don't behave the same on all platforms.
Soma