hi,
Hwo to write %> into a file in asp, I got error when I run the script below.
please help. many thanks.

<%
strContent = strContent & "<%"
strContent = strContent & "dim i"
strContent = strContent & "%>"
dim fs, f
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Set f = fs.openTextFile(strPath, 2, true)
f.write strContent
f.close
set f = nothing
set fs = nothing
%>

Re: Hwo to write %> into a file in asp by Ray

Ray
Thu May 11 16:15:48 CDT 2006

strContent = strContent & "%" & ">"

Ray at work


"js" <js@someone@hotmail.com> wrote in message
news:er3yN3TdGHA.3632@TK2MSFTNGP05.phx.gbl...
> hi,
> Hwo to write %> into a file in asp, I got error when I run the script
> below. please help. many thanks.
>
> <%
> strContent = strContent & "<%"
> strContent = strContent & "dim i"
> strContent = strContent & "%>"
> dim fs, f
> Set fs = Server.CreateObject("Scripting.FileSystemObject")
> Set f = fs.openTextFile(strPath, 2, true)
> f.write strContent
> f.close
> set f = nothing
> set fs = nothing
> %>
>
>