एडीओ रीडटेक्स्ट विधि
❮ पूर्ण स्ट्रीम वस्तु संदर्भ
रीडटेक्स्ट विधि का उपयोग किसी टेक्स्ट स्ट्रीम ऑब्जेक्ट से संपूर्ण स्ट्रीम, एक पंक्ति या वर्णों की एक निर्दिष्ट संख्या को पढ़ने के लिए किया जाता है और परिणामी डेटा को एक स्ट्रिंग के रूप में लौटाता है।
नोट: इस पद्धति का उपयोग केवल टेक्स्ट स्ट्रीम ऑब्जेक्ट्स के साथ किया जाता है, बाइनरी स्ट्रीम ऑब्जेक्ट्स के लिए, रीड विधि का उपयोग करें।
वाक्य - विन्यास
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 |
❮ पूर्ण स्ट्रीम वस्तु संदर्भ