Sto cercando di creare delle pagine ASP con cui poter creare in poco tempo e facilmente un sondaggio che si avvale di un file di testo. Il problema è che quando apro i file di testo scritti appare questo:
Il codice che uso:
codice:
dim fs,f,fnew,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile(server.mappath("sondage/" & nome & ".txt"), ForWriting, true)
riga = "opt1=" & opt1 & "&vot1=0&opt2=" & opt2 & "&vot2=0&opt3=" & opt3 & "&vot3=0&opt4=" & opt4 & "&vot4=0&opt5=" & opt5 & "&vot5=0&opt6=" & opt6 & "&vot6=0&opt7=" & opt7 & "&vot7=0&opt8=" & opt8 & "&vot8=0"
fname.WriteLine riga
set fnew=nothing
set fname=nothing
set fs=nothing