Visual Basic - Leer de un fichero .txt

Life is soft - evento anual de software empresarial
 
Vista:

Leer de un fichero .txt

Publicado por Luis G. (14 intervenciones) el 24/07/2001 08:52:59
¿Como podría hacer para leer datos de un fichero. txt?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Leer de un fichero .txt

Publicado por luisvie (42 intervenciones) el 24/07/2001 09:17:44
define un FileSystemObject llamado FSO, un string llamado linea, un txtstream llamado fichero, y luego asocia el string a una linea del fichero de la siguiente forma:

Dim FSO As New FileSystemObject
Dim File As TextStream
dim linea as string

Set File = FSO.OpenTextFile("nombrefichero.txt")

While Not FilePrev.AtEndOfStream
linea=fichero.ReadLine

'a partir de ahí trata el string linea para obtener los datos quieras
'debes conocer la estructura del fichero.
loop
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar