Returns the current file position of the StreamReader.
Namespace: MARCEngine5Assembly: MARCEngine (in MARCEngine.dll) Version: 2.2.8.0 (2.2.8)
Syntax public int Peek(
Object StreamObject
)
Public Function Peek (
StreamObject As Object
) As Integer
public:
virtual int Peek(
Object^ StreamObject
) sealed
abstract Peek :
StreamObject : Object -> int
override Peek :
StreamObject : Object -> int
Parameters
- StreamObject
- Type: SystemObject
StreamReader object
Return Value
Type:
Int32-1 -- End of file; 0> = file position; -2 -- Error.
Implements
MARC21_InterfacePeek(Object)Remarks Returns the current file position. -1 is the end of the file,
0 and greater is the file position, and -2 indicates and error occurred.
See Also