La Web del Programador: Comunidad de Programadores
 
    Pregunta:  5097 - GENERAR ARCHIVOS CON ASP
Autor:  Maximiliano Barriga Roco
Hola, habria alguien que me pueda responder la siguiente pregunta..
¿Como puedo lanzar el resultado de una query a un archivo de texto?....
Realmente necesito su ayuda amigos..

  Respuesta:  Xavi
Aqui te mando el ejemplo que hay en la ayuda...

Function EscribirEnArchivo
Const ParaLeer = 1, ParaEscribir = 2
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\prueba.txt", ParaEscribir, True)
f.Write "Hola mundo"
Set f = fso.OpenTextFile("c:\prueba.txt", ParaLeer)
EscribirEnArchivo = f.ReadLine
End Function

Espero que te sirva