Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2003, 22:57
Avatar de biblio
biblio
 
Fecha de Ingreso: enero-2002
Ubicación: Urano
Mensajes: 577
Antigüedad: 23 años, 2 meses
Puntos: 0
Cuando uno hace include lo puedes hacer sin nigun problema a un *.htm, en cuanto a hacerlo desde otro server no lo he probado, por tanto no te puedo asegurara nada.

Para la segunda mejor te dejo este código
Código:
<%
  Const ForReading = 1
  
  Dim Array (8) ' para la matriz se dbe tomar en cuenta cuantas lineas tiene el archivo, aca yo lo puse manualmente, eso dnbes cambiarlo
  Dim index
  index = 0

  Dim fso, theFile, retstring
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set theFile = fso.OpenTextFile("C:\Inetpub\wwwroot\text.txt", ForReading, False)
  Do While theFile.AtEndOfStream <> True
    Array(index) = theFile.ReadLine
    index = index + 1
  Loop
  theFile.Close
  
  For x=0 to 8
    Response.Write Array(x) ' aca volvemos a mostrar el valor pero de la matriz
  Next

%>
Las mejoras y adapatciones lo haces tu, dudas solo escribeme.

Saludos

Última edición por biblio; 11/08/2003 a las 01:41