DartStream Object : Read Method |
If the Buffer parameter is omitted, then this method attempts to read all the data from the current position to the end of the stream. The position is advanced Count bytes upon completion.
This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):
Private Sub ReadAll(S As String) On Error Goto OnError ' use intrinsic error handling 'Move the position to the beginning Stream1.Position = 0 Stream1.Read S Exit Sub OnError: ' Any error jumps here Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description End Sub