@
@(none)
I am trying to write a file on the server ( currently my local machine )
using FSO, but am having problems.
I have the following code ( which I got from several sources - mainly
http://sislands.com/coin70/week10/asp/fsobj.htm and have inserted this
both inside a function and outside.
var fso;
ForAppending = 8
fso = new ActiveXObject( "Scripting.FileSystemObject" );
var selects = fspenTextFile(
"/home/mas/tradeFiles/webSite/files/selections.txt", ForAppending, true,
false );
selects.WriteLine( "Hello" );
Problem is as soon as it gets to the 4th line ( selects = fso...........
) the browser hangs. Isuspected there may be a setting in the browser
but this doesn't seem to be the problem ( Mozilla ), now I suspect
javascript may need some sort of include statement ( does it have such a
concept ?? )
Has anyone out there actually created and written to a file in
javascript ?? The two books I have don't even make reference to file
operations ( I know I'll get the O'Reilly book next week ;-) )
Hope someone can help !! Thanks.
using FSO, but am having problems.
I have the following code ( which I got from several sources - mainly
http://sislands.com/coin70/week10/asp/fsobj.htm and have inserted this
both inside a function and outside.
var fso;
ForAppending = 8
fso = new ActiveXObject( "Scripting.FileSystemObject" );
var selects = fspenTextFile(
"/home/mas/tradeFiles/webSite/files/selections.txt", ForAppending, true,
false );
selects.WriteLine( "Hello" );
Problem is as soon as it gets to the 4th line ( selects = fso...........
) the browser hangs. Isuspected there may be a setting in the browser
but this doesn't seem to be the problem ( Mozilla ), now I suspect
javascript may need some sort of include statement ( does it have such a
concept ?? )
Has anyone out there actually created and written to a file in
javascript ?? The two books I have don't even make reference to file
operations ( I know I'll get the O'Reilly book next week ;-) )
Hope someone can help !! Thanks.