Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file write

Status
Not open for further replies.

dcarbone

Programmer
Aug 22, 2003
29
CA
how do i use a response.write to write the value of a variable to a file

x="hello"
oTextFile.Write response.write(x)

this code just writes it to the screen and not to the file
 
set Fso = server.createobject("Scripting.FileSystemObject")
set oTextFile = Fso_OpenTextFile(FileName, iMode, True)

x="hello"

oTextFile.WriteLine response.write(x).value
oTextFile.Write &quot;<td align=center><b><font size=2 face=Arial>&quot; & response.write(x) & &quot;</font></b></td>&quot;

oTextFile.Write
oTextFile.Close
set oTextFile = nothing
set FSo = nothing

end function

x is any value that i want to write to the file. But it still doesnt write. It displays it to the screen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top