Método ADO ReadText
❮ Referência Completa do Objeto Stream
O método ReadText é usado para ler o fluxo inteiro, uma linha ou um número especificado de caracteres de um objeto Stream de texto e retorna os dados resultantes como uma string.
Nota: Este método é usado apenas com objetos Stream de texto, para objetos Stream binários, use o método Read.
Sintaxe
str=objStream.ReadText numchars
Parameter | Description |
---|---|
numchars | Optional. The number of characters to read from the file,
or a StreamReadEnum value. Default is adReadAll
If you have specified more than the number of characters left in the Stream, only the character remaining are returned |
Valores StreamReadEnum
Constant | Value | Description |
---|---|---|
adReadAll | -1 | Default. Reads all characters from the stream, from the current position to EOS |
adReadLine | -2 | Reads the next line from the stream |
❮ Referência Completa do Objeto Stream