CLASS: InputStream
Class LineInputStream

InputStream
|
+--LineInputStream

InputStream that reads from another InputStream reading one line per call to ReadStream().

Typical usage is:
Dim fin As New FileInputStream("c:\somefile.txt")Dim lin As New InputStream(fin)Dim rc As IntegerDim buffer As StringCall lin.Open()While rc = 0   rc = in.ReadStream(buffer)   Print "line: " + bufferWendCall lin.Close()


Property Summary
Public LongLineCount (Get)
     Returns the current line number.

Methods Summary
PublicNew(i As InputStream)
     Constructor.
PublicOpen()
     Method to open the underlying stream for reading.

Functions Summary
Public IntegerReadStream(buffer As String)
     Function that reads the next line from the stream.

Method Detail

New

Public New(i As InputStream)
Constructor.
Parameter(s):
filename - The filename of the file to read

Open

Public Sub Open()
Method to open the underlying stream for reading.

Function Detail

ReadStream

Public Function ReadStream(buffer As String) As Integer
Function that reads the next line from the stream.
Parameter(s):
buffer - The buffer to write to
Returns:
Return code (0 if there is more data, 1 if we are done)