A
adamsroy
Hi I'm trying to append an already existent text file, simple enough,
but it doesn't seem to be working,
here's my code
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
var stringToWrite =
"date=12/0305atfuzionhouse&guest1=SomeName&mail1=somemail&phone1=Somephone22222";
var fso;
var file;
var ForAppending = 8;
var ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
file =
fspenTextFile(Server.mappath("guestlist.txt",ForAppending,true));
file.Write(stringToWrite);
%>
I can use the create text file method but this over writes the file
and when i use the above code i get
Wrong number of arguments or invalid property assignment
any help is appriciated
but it doesn't seem to be working,
here's my code
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
var stringToWrite =
"date=12/0305atfuzionhouse&guest1=SomeName&mail1=somemail&phone1=Somephone22222";
var fso;
var file;
var ForAppending = 8;
var ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
file =
fspenTextFile(Server.mappath("guestlist.txt",ForAppending,true));
file.Write(stringToWrite);
%>
I can use the create text file method but this over writes the file
and when i use the above code i get
Wrong number of arguments or invalid property assignment
any help is appriciated