reader class : EndOfStream getter

Description

Gets a value that indicates whether the current stream position is at the end of the stream.

Syntax

readerInstance.EndOfStream

Arguments

None.

Return value

ClassDescription
boolA value that indicates whether the current stream position is at the end of the stream.

Sample code

1:

reader r = new reader("c:\somewhere...\sample.txt");

2:

string whole = r.ReadToEnd();

3:

bool eos = r.EndOfStream; // true.

Notes

It's a wrapper of the System.IO.StreamReader.EndOfStream property.

Returns true if the current stream position is at the end of the stream. Otherwise returns false.

Links for reference

Copyright © Cooker All rights reserved.