Click or drag to resize
MARC21_InterfacePeek Method
Peeks forward in a stream to see if file is at the end or not

Namespace: MARCEngine5
Assembly: MARCEngine (in MARCEngine.dll) Version: 2.2.8.0 (2.2.8)
Syntax
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