Quiero Crear Un Ficheros de Texto (*.txt) con VB 6 y no se como hacerlo. Me gustaria que me explicarais como.
Gracias
Crear ficheros de texto *.txt con Visual Basic (VB.6)
Moderador: Moderadores
Como que les hace falta algo a muchos de este foro
Que les hace falta .................... leer .... leer el HELP de VB6.0 antes de preguntar, aun asi ............ aqui esta lo que encontrarias acerca de lo que preguntas:
This example illustrates various uses of the Open statement to enable input and output to a file.
The following code opens the file TESTFILE in sequential-input mode.
Open "TESTFILE" For Input As #1
' Close before reopening in another mode.
Close #1
This example opens the file in Binary mode for writing operations only.
Open "TESTFILE" For Binary Access Write As #1
' Close before reopening in another mode.
Close #1
The following example opens the file in Random mode. The file contains records of the user-defined type Record.
Type Record ' Define user-defined type.
ID As Integer
Name As String * 20
End Type
Dim MyRecord As Record ' Declare variable.
Open "TESTFILE" For Random As #1 Len = Len(MyRecord)
' Close before reopening in another mode.
Close #1
This code example opens the file for sequential output; any process can read or write to file.
Open "TESTFILE" For Output Shared As #1
' Close before reopening in another mode.
Close #1
This code example opens the file in Binary mode for reading; other processes can't read file.
Open "TESTFILE" For Binary Access Read Lock Read As #1
Saludos
felixelizondot@yahoo.com.mx
Desde Mexico transmitiendo °°°°°°°°°°°°°°°°°||
This example illustrates various uses of the Open statement to enable input and output to a file.
The following code opens the file TESTFILE in sequential-input mode.
Open "TESTFILE" For Input As #1
' Close before reopening in another mode.
Close #1
This example opens the file in Binary mode for writing operations only.
Open "TESTFILE" For Binary Access Write As #1
' Close before reopening in another mode.
Close #1
The following example opens the file in Random mode. The file contains records of the user-defined type Record.
Type Record ' Define user-defined type.
ID As Integer
Name As String * 20
End Type
Dim MyRecord As Record ' Declare variable.
Open "TESTFILE" For Random As #1 Len = Len(MyRecord)
' Close before reopening in another mode.
Close #1
This code example opens the file for sequential output; any process can read or write to file.
Open "TESTFILE" For Output Shared As #1
' Close before reopening in another mode.
Close #1
This code example opens the file in Binary mode for reading; other processes can't read file.
Open "TESTFILE" For Binary Access Read Lock Read As #1
Saludos
felixelizondot@yahoo.com.mx
Desde Mexico transmitiendo °°°°°°°°°°°°°°°°°||
- Highlander
- Senior
- Mensajes: 31
- Registrado: Jue Sep 02, 2004 8:01 pm
- Ubicación: Mexico Distrito Federal
- Contactar:
Re: Crear ficheros de texto *.txt con Visual Basic (VB.6)
en efecto tienes razon, o te pones a leer un poco mas la ayuda de Visual.Guijarro escribió:Quiero Crear Un Ficheros de Texto (*.txt) con VB 6 y no se como hacerlo. Me gustaria que me explicarais como.
Gracias
o toam un curso del mismo..
tu pregunta fue tan elemental
De todas formas, quedamos a tus ordenes