Dim fso, MyFile, i Set fso = Server.CreateObject("Scripting.FileSystemObject") If NOT fso.FolderExists(Server.mappath(saveURL) & "/") Then RecMkDir(Server.mappath(saveURL) & "/") End If Set MyFile = fso.CreateTextFile(Server.mappath(saveURL) & "/" & filename)
For i = 1 to LenB(value) MyFile.Write chr(AscB(MidB(value,i,1))) Next