ADO SaveToFile နည်းလမ်း
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
SaveToFile နည်းလမ်းကို ဖွင့်ထားသော Stream အရာဝတ္ထု၏ binary အကြောင်းအရာများကို local file တစ်ခုသို့ သိမ်းဆည်းရန်အတွက် အသုံးပြုပါသည်။
မှတ်ချက်- ဤနည်းလမ်းကို ခေါ်ဆိုပြီးနောက်၊ ထုတ်လွှင့်မှုတွင် လက်ရှိအနေအထားကို ထုတ်လွှင့်မှု၏အစ (Position=0) အဖြစ် သတ်မှတ်ထားသည်။
အထားအသို
objStream.SaveToFile filename,option
Parameter | Description |
---|---|
filename | Required. The name of the file to save the contents of the Stream object |
option | Optional. A SaveOptionsEnum value that specifies whether a file should be created if it does not exist or overwritten. Default is adSaveCreateNotExist. |
SaveOptionsEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adSaveCreateNotExist | 1 | Default. Creates a new file if the file does not already exist |
adSaveCreateOverWrite | 2 | Overwrites the file with the data from the currently open Stream object, if the file already exists |
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။