|
File Operations
This example show file read and write operations.
02 | set fsObj = CreateObject( "Scripting.FileSystemObject" ) |
05 | set fileOut = fsObj.CreateTextFile( "c:\test.txt" ,true,false) |
06 | fileOut.WriteLine( "BE THE CODER" ) |
07 | fileOut.WriteLine( "FILE OPS EXAMPLE" ) |
12 | set fileIn = fsObj.OpenTextFile( "c:\test.txt" ,1) |
13 | while fileIn.AtEndOfStream = false |
14 | line = fileIn.ReadLine() |
|
It gives the following output,
BE THE CODER
FILE OPS EXAMPLE
|
|