tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
5
Task/Read-entire-file/JavaScript/read-entire-file-1.js
Normal file
5
Task/Read-entire-file/JavaScript/read-entire-file-1.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var fso=new ActiveXObject("Scripting.FileSystemObject");
|
||||
var f=fso.OpenTextFile("c:\\myfile.txt",1);
|
||||
var s=f.ReadAll();
|
||||
f.Close();
|
||||
try{alert(s)}catch(e){WScript.Echo(s)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue