Re: unbuffered file IO?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Tue, 14 Aug 2007 22:25:04 +0100
MikeJ <vettes_n_jets@xxxxxxxxxxxxx> wrote:
the top section i typed fast..sorry...but
the bottome section is the class..and it compiles just fine
I dare say it *compiles* fine, but it doesn't look exactly general
purpose to me. ~ as a line ending means a line length of 106?
You've also got a bug (in at least two places) where you allocate a
buffer, read into it, and then convert the *whole* buffer into a
string, which assumes that the buffer will be filled completely.
I'm sorry to say this, but I just wouldn't trust this code without
picking it apart in detail - and I'd advise the OP to write from
scratch rather than trying to understand what this code does and fix
its issues.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: unbuffered file IO?
- From: UL-Tomten
- Re: unbuffered file IO?
- From: MikeJ
- Re: unbuffered file IO?
- References:
- unbuffered file IO?
- From: Lee Crabtree
- Re: unbuffered file IO?
- From: MikeJ
- Re: unbuffered file IO?
- From: Jon Skeet [C# MVP]
- Re: unbuffered file IO?
- From: MikeJ
- Re: unbuffered file IO?
- From: Jon Skeet [C# MVP]
- Re: unbuffered file IO?
- From: MikeJ
- unbuffered file IO?
- Prev by Date: Re: C# event traps triggering the "The function you are attempting to run contains macros" message !?
- Next by Date: Re: anyone tried to connect to nokia?
- Previous by thread: Re: unbuffered file IO?
- Next by thread: Re: unbuffered file IO?
- Index(es):
Relevant Pages
|