Re: [Dev-C++] Some extra bytes written to file?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2003-03-07 02:34:17
|
-------Original Message-------=0D
=0D
From: Per Westermark=0D
Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 7 =CC=DC=F1=F4=E9=EF=F2 2003 1:18:58 =F0=
=EC=0D
To: "J=F6rgen"=0D
Cc: Ioannis Vranos; dev...@li...=0D
Subject: Re: [Dev-C++] Some extra bytes written to file?=0D
=0D
No problem about the extra 0x0d before a 0x0a.=0D
=0D
Every heard about CR+LF, i.e. carriage return + line feed.=0D
=0D
Whenever you open the file in text mode on a MSDos or Windows machine, yo=
u=0D
will get the automatic addition, i.e. printf("hello\n"); will actually=0D
emit "hello\r\n", and when you load the file in text mode, the extra CR=0D
will be removed.=0D
=0D
People normally only programming on Unix machines tries to forget this=0D
little Microsoft extra, resulting in big problems reading and or writing=0D
binary files.=0D
=0D
=0D
=3D=3D> Yes, this is also the case to change line in .NET multiline Text =
boxes.
I can't understand why...=0D
=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20 |