|
|
#1 (permalink) |
![]() Fecha de Ingreso: diciembre-2003
Mensajes: 464
|
Ayuda con carga de archivo txt a BD
|
|
|
|
|
|
#2 (permalink) |
![]() Fecha de Ingreso: julio-2006
Ubicación: Montevideo
Mensajes: 9
|
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.... |
|
|
|
![]() |
| Herramientas | |
| Desplegado | |
|
|