Click or drag to resize

MARC21_InterfacePeek Method

Peeks forward in a stream to see if file is at the end or not

Namespace:  MARCEngine7
Assembly:  MARCEngine7 (in MARCEngine7.dll) Version: 1.0.22.0 (1.0.22)
Syntax
C#
int Peek(
	Object StreamObject
)

Parameters

StreamObject
Type: SystemObject
StreamReader Object

Return Value

Type: Int32
file position
Remarks
This function will return a -1 when the end of file is reached, or the file position. This allows users to do the following type of loop to go through a file: while StreamObject.Peek > -1 ...do stuff end
See Also