
June 1st, 2000, 05:51 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
Cannot write to textfile.
<i><b>Originally posted by : dsylikm (dsylikm@mail.com)</b></i><br />Hi,<br /><br />I am trying to pass an e-mail address to a textfile, here is the code I am using:<br /><br /><%<br />Const ForWriting = 2, ForAppending = 8<br /> Set filesys = CreateObject("Scripting.FileSystemObject")<br /> Set MyFile = filesys.OpenTextFile("textfile.txt", ForAppending, True)<br /> MyFile.Writeline(Request.Form("van"))<br /> MyFile.Close<br />%><br /><br />When I hit the submit button, the data is passes from asp page 1 to asp page 2 BUT the data is not written to the textfile. From the users point of view nothing has gone wrong....but it is not writing to the file...<br /><br />Any ideas?<br /><br />Thanks,<br />Andy
|