ADO ReadText နည်းလမ်း
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
ReadText method ကို stream တစ်ခုလုံး၊ လိုင်းတစ်ခု သို့မဟုတ် text Stream object တစ်ခုမှ သတ်မှတ်ထားသော စာလုံးအရေအတွက်ကို ဖတ်ရန်နှင့် ရရှိလာသော data ကို string အဖြစ် ပြန်ပို့ပေးသည်။
မှတ်ချက်- ဤနည်းလမ်းကို text Stream အရာဝတ္ထုများနှင့်သာ အသုံးပြုသည်၊၊ ဒွိစီးကြောင်းအရာဝတ္ထုများအတွက် Read method ကို အသုံးပြုပါ။
အထားအသို
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 |
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။