![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Count the Number of Words in a Text File
|
||
|
var forreading = 1;
var objfso = new ActiveXObject("scripting.filesystemobject"); var objfile = objfso.opentextfile("c:\\scripts\\test.txt", forreading); strtext = objfile.readall(); objfile.close(); arrwords = strtext.split(" ") WScript.Echo(arrwords.length); | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||