|
From: Per W. <pw...@ia...> - 2005-11-08 15:18:39
|
Do you open the files as binary or as text? /Per W On Tue, 8 Nov 2005, massimiliano cialdi wrote: > I use mingw-gcc 3.4.2 provided by DevCpp 4.9.9.2 beta 9. > It seems that gcc (or only some components like libstdc++) is compiled > using unix style EOL (LF) instead of win style (CR+LF). > I have tested it with a simple program that read lines from a text > file and print them out. > > http://mastupristi.altervista.org/test_ifstream.zip > Here is the sample project. There are two text file: testunix.test and > testwin.test (with different EOL style). If you try to execute the > program you can see that it works properly only with testunix.test. > Now the question is: "How can I make it works with windows style EOL?" > > please note that compiling with mingw-gcc 3.2.3, or under linux, the > programs works well... > > thanks > > -- > Massimiliano Cialdi > ci...@gm... > m.c...@ok... > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |