Thanks Mattias
Works a treat !!
Roger
-----Original Message-----
From: Mattias Sjögren [mailto:ma********************@mvps.org]
Posted At: 02 August 2004 16:47
Posted To: microsoft.public.dotnet.languages.csharp
Conversation: Detect EOF - How??
Subject: Re: Detect EOF - How??
Roger,
Is there a better way of detecting EOF other than letting it throw an
exception??
You can do something like
while ( binReader.PeekChar() != -1 ) {
...
}
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.