se puede generar un archivo de texto desde ASP?...
y si se puede como deberia hacerlo?....
porque lo necesito para el loadvars de flash...
| ||||
Varias opciones: <% 'Crear Ficheros verificando antes su existencia set FSO = Server.CreateObject("Scripting.FileSystemObject") If fso.FileExists (Server.MapPath("prueba.txt")) Then response.write("ya existe") else set oFich = FSO.CreateTextFile ( Server.MapPath("prueba.txt"), True ) response.write("Se ha creado & ofich") end if %> <% 'Borrar ficheros set FSO = Server.CreateObject("Scripting.FileSystemObject") set oFich = FSO.deletefile (Server.MapPath("prueba.txt")) %> <% 'Añadir lineas a un fichero set FSO = Server.CreateObject("Scripting.FileSystemObject") set oFich = FSO.OpenTextFile(Server.MapPath("prueba.txt"), 8) '8=ForAppending Abre un archivo y escribe al final del mismo. oFich.WriteLine ("Esta es la nueva línea que hemos añadido.") oFich.Close set oFich = nothing %> Para mas informacion sigue este link: http://www.aspfacil.com/articulos/verarticulo.asp?id=56 http://asp.com-e.net/codigo/fso.asp |