August 1999
Intermediate to advanced
1488 pages
72h 53m
English
textstream.ReadAll()
The ReadAll() method of an instance of the TextStream object reads the entire text file. Be careful when using this method with large files because it will use up a good amount of system memory.
Listing 9.130 opens two files. The first file is for reading a string from, while the second file is written to. 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