InterviewSolution
Saved Bookmarks
| 1. |
How To Open A File. What Is The Perpose Of True And False Mode There? |
|
Answer» How to READ from file and WRITE into the file set files = CREATEOBJECT(“scripting.filesystemobject”) set obj1=files.opentextfile(“d:file2.txt”,2,TRUE) ‘ true uses for ceating txt file set obj2=files.opentextfile(“d:file2.txt”,1,false) ‘ false will not create any file obj1.writeline(“write this line into file”) str=obj2.readline msgbox str set files=nothingHow to read from file and write into the file |
|