Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Count the Number of Words in a Text FileContent of Count the Number of Words in a Text File.jsMD5 Hash: 9178CEF6BED0157597366D4CCE43A7D0 |
||
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 :: |