reader class : EOF getter

Description

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

Syntax

readerInstance.EOF

Arguments

None.

Return value

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

Sample code

1:

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

2:

string whole = r.ReadToEnd();

3:

bool eof = r.EOF; // true.

Notes

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

Therefore, this getter behaves the same as the EndOfStream getter.

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


This getter has been added in Rtype.Reader.dll Ver 1.0.0.2.

Links for reference

Copyright © Cooker All rights reserved.