MARC21_InterfacePeek Method |
Peeks forward in a stream to see if file is at the end or not
Namespace: MARCEngine5Assembly: MARCEngine (in MARCEngine.dll) Version: 2.2.8.0 (2.2.8)
Syntax int Peek(
Object StreamObject
)
Function Peek (
StreamObject As Object
) As Integer
int Peek(
Object^ StreamObject
)
abstract Peek :
StreamObject : Object -> int
Parameters
- StreamObject
- Type: SystemObject
StreamReader Object
Return Value
Type:
Int32file 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