<%
sImg = "#FFFFFF"
sVid = "#FFFFFF"
%>
I just want to right the above code in a .INC file. I am using the following code.
<%
dim fs,fname, strPath, a, b, cl
a= """#FFFFFF"""
b= """#000000"""
set fs=Server.CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath("./cat.inc")
set fname=fs.CreateTextFile(strPath)
fname.WriteLine("<%")
fname.WriteLine("sImg = " & a )
fname.WriteLine("sVid = " & b )
fname.WriteLine("%>")
fname.Close
set fname=nothing
set fs=nothing
%>
It keeps giving error:
---------------------------------
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/test.asp, line 19
fname.WriteLine("
-------------------------------------
line 19 is this:
fname.WriteLine("%>")
fname.WriteLine "%>"