🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3296

Re: Carriage Returns

#3296
From: Arnie Mauer
Date: Thu, 17 Oct 2002 14:35
17 lines
1608 bytes
Gareth,
Are you using fopen()/fgets()/etc?  If this is the case, Windows (DOS)
platforms normally translate the "\r\n" at the end of a line to a "\n" only.
On writing a file, a "\n" is translated to "\r\n".  If you don't want the
translation, open the file in binary mode.
- Arnie

"Gareth" <gbh_2@hotmail.com> wrote in message
news:3dae8382$1@newsgroups.borland.com...
>
> I am reading in data from a structured file that does have carriage
returns and the end of the lines.  However when i read the data back into a
buffer it does not see the \r.
>
> Would anyone have any ideas as to why this is happening
>
> Thanks
Technical Details
Message-ID: <3daecac9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!telocity-west!TELOCITY!news.stealth.net!news.stealth.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3dae8382$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c47d1d46f69bf148
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-17 07:42:07 PST
From: "Arnie Mauer" <amauer@vrms.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3dae8382$1@newsgroups.borland.com>
Subject: Re: Carriage Returns
Date: Thu, 17 Oct 2002 10:35:14 -0400
Lines: 19
Organization: VRMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 24.151.50.11
Message-ID: <3daecac9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1034865353 24.151.50.11 (17 Oct 2002 07:35:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!telocity-west!TELOCITY!news.stealth.net!news.stealth.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail