Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/02/2003, 15:45
Lethe
 
Fecha de Ingreso: noviembre-2002
Ubicación: Caracas
Mensajes: 75
Antigüedad: 22 años, 5 meses
Puntos: 0
Pregunta Abrir y crear ficheros de texto en el servidor. AYUDA

Hola a tod@s !

Tengo la siguiente asp que abre y lee un archivo de tipo texto; es decir, .txt para mostarlo un el browser.


<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set wfile = fs.OpenTextFile("C:\Inetpub\Prueba\MyFile.txt")
filecontent = wfile.ReadAll

wfile.close
Set wfile=nothing
Set fs=nothing

response.write(filecontent)
%>

El problema es que se tarda demasiado la ejecusión del código, generando Timeout.

Alguien me podría decir que puede estar pasando?