Visual Basic - Ayuda con Archivos

Life is soft - evento anual de software empresarial
 
Vista:

Ayuda con Archivos

Publicado por Andres (63 intervenciones) el 15/11/2002 19:41:47
Hola alguien me podria orientar de como puedo manejar archivos desde VB, necesito saber como puedo craer algun archivo de texto, como puedo modificar archivo de texto, como puedo cambiar el atributo de un archivo, etc...

Muchas gracias por su tiempo y la colaboración que me puedan brindar.
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:Ayuda con Archivos

Publicado por Manuel (87 intervenciones) el 15/11/2002 20:49:33
Para crear un archivo de texto
Dim FileScrip As Variant
Dim xFile As Variant
Set FileScrip = CreateObject("Scripting.FileSystemObject")
Set xFile = FileScrip.CreateTextFile("C:\Prueba\Texto.txt", True)
xFile.Close
Abrir un Archivo de texto
Open "C:\Prueba\Texto.txt" For Output As #1
Para escribir en un archivo Print #1, strRow
Para eliminar u \n Archuvo Kill C:\Prueba\Texto.txt
Saludos desde Lima
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