August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textstream.Read(num)
The Read() method of an instance of the TextStream object reads the num characters passed to the method starting at the current pointer position.
Listing 9.129 opens two files. The first file is for reading a string from, while the second file is written to—one character at a time—as the script iterates through. The result is that the file opened for reading is written to the second file. This file can be executed with the Windows Scripting Host (wscript.exe or cscript.exe).
// Create a FileSystemObject object var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); // Create a TextStream object to read from and ... |
Read now
Unlock full access