Visual Basic - Abrir txt

Life is soft - evento anual de software empresarial
 
Vista:

Abrir txt

Publicado por JULIO (198 intervenciones) el 17/04/2003 00:10:31
Mi problema es que necesito abrir un archivo de texto para mostrar su contenido en un richtextbox para posteriormente leer el contenido utilizando el ms agent,nada mas requiero saber como abrir el archivo y mostrar su contenido.
de antemano mil gracias.....
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:Abrir txt

Publicado por max5 (16 intervenciones) el 17/04/2003 02:24:14
Puedes usar esta

dim fso As Scripting.FileSystemObject

Set fso = New Scripting.FileSystemObject
Set f = fso.OpenTextFile(strRutaArchivo, ForReading, True)

While Not f.AtEndOfStream
r = f.ReadLine()
'aca r contiene la linea del archivo txt
Wend

f.Close

Set fso = Nothing
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