ADO ReadText 메서드
❮ 전체 스트림 개체 참조
ReadText 메서드는 텍스트 Stream 개체에서 전체 스트림, 한 줄 또는 지정된 수의 문자를 읽고 결과 데이터를 문자열로 반환하는 데 사용됩니다.
참고: 이 메서드는 텍스트 Stream 개체에만 사용되며 이진 Stream 개체의 경우 Read 메서드를 사용합니다.
통사론
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 |
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 |
❮ 전체 스트림 개체 참조