Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/04/2008, 08:22
Stendelis
 
Fecha de Ingreso: julio-2006
Ubicación: Montevideo
Mensajes: 34
Antigüedad: 18 años, 7 meses
Puntos: 0
Re: Ayuda con carga de archivo txt a BD

Hola,

Busca como utilizar FSO, file system object...

En asp el código para habrir un TXT sería algo asi....

Código:
<%
set fs = createobject("scripting.filesystemobject")
set wfile = fs.opentextfile("c:\mydir\myfile.txt")
filecontent = wfile.readall

wfile.close
set wfile=nothing
set fs=nothing

response.write(filecontent)
%>

Esto lee todo el archivo de texto, pero lo puedes ir leyendo línea a línea y vas haciendo un insert en la base de datos, esto depende que contenga el TXT.

Busca mas ayuda en este foro, busca FSO....