Article View: borland.public.csharpbuilder.language.csharp
Article #567Re: StreamReader and Unix text files
From: Lord Crc
Date: Mon, 09 Aug 2004 13:31
Date: Mon, 09 Aug 2004 13:31
13 lines
1365 bytes
1365 bytes
On 9 Aug 2004 02:29:26 -0700, "philippe chessa"
philippe_chessa[at]compuserve.com wrote:
>Is it possible to use the StreadReader class to read a Unix text file (0D as line separator instead of OD/0A) without reading char by char?
Rhe help for StreamReader.ReadLine says:
"A line is defined as a sequence of characters followed by a line feed
("\n") or a carriage return immediately followed by a line feed
("\r\n")."
So it seems that it should read unix-style files just fine.
- Asbj�
Technical Details
Message-ID:
<71veh05gqnrspnbkknknbo54e3720guhs2@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411743f6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,63642c166b553483 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: Lord Crc <lordcrc@hotmail.com> Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: StreamReader and Unix text files Date: Mon, 09 Aug 2004 15:31:38 +0200 Message-ID: <71veh05gqnrspnbkknknbo54e3720guhs2@4ax.com> References: <411743f6$1@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.646 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 80.203.48.5 X-Trace: newsgroups.borland.com 1092058284 80.203.48.5 (9 Aug 2004 06:31:24 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail