Problem using the read() command
by Jon Grosse, December 10, 2007 04:28
I cannot read anything into my vTextline variable, I am able to write to the file ok. There are no errors but the variable is empty. I could not find a $read example in the manual, so I may have got the statement wrong.
<% OPEN log, "C:\testfile.txt" APPEND; WRITE log, "$date_short$ $time24_hms$ Record $key$ updated.\n"; CLOSE log;
OPEN myfile, "C:\testfile.txt" READ; set vTextline=$read(myfile); CLOSE myfile; %> contents of file:$vTextline$
The above line displays as:- contents of file:
Name E-mail optional TopicMessage:
HTTP Link: Link text: