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 Long | LineCount (Get)Returns the current line number. |
| Methods Summary | |
Public | New(i As InputStream)Constructor. |
Public | Open()Method to open the underlying stream for reading. |
| Functions Summary | |
Public Integer | ReadStream(buffer As String)Function that reads the next line from the stream. |
| Method Detail |
Public New(i As InputStream)
filename - The filename of the file to readPublic Sub Open()
| Function Detail |
Public Function ReadStream(buffer As String) As Integer
buffer - The buffer to write to