"Rickli Hansueli" <ri****@rickli.com> wrote in message
news:3f**********@news.bluewin.ch...
javascript:
can I write to a local .txt File
as exaple:
open() ....writel(() ...close()..... ....save as ... c:\test.txt
In the standard web environment no, but on your local PC you can, e.g.
var fso = new ActiveXObject("Scripting.FileSystemObject");
var myfile = fso.CreateTextFile("c:\\myfile.txt", true);
myfile.WriteLine("Some test.");
myfile.Close();
Search Google for FileSystemObject for more information.
If you have some antivirus program, it may stop the script.
Vjekoslav