deleyd
asked on
Detect end of file
I currently have:
try
{
for (; ; )
{
y = r.ReadByte();
}
}
catch (EndOfStreamException)
{
//end of file
}
Is there a better way? I feel I shouldn't be using catch for an expected exception.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window