एडीओ सेवटोफाइल विधि
❮ पूर्ण स्ट्रीम वस्तु संदर्भ
SaveToFile विधि का उपयोग ओपन स्ट्रीम ऑब्जेक्ट की बाइनरी सामग्री को स्थानीय फ़ाइल में सहेजने के लिए किया जाता है।
नोट: इस पद्धति को कॉल करने के बाद, स्ट्रीम में वर्तमान स्थिति स्ट्रीम की शुरुआत (स्थिति = 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 Values
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 |
❮ पूर्ण स्ट्रीम वस्तु संदर्भ