Hola gente, estaba buscando algun code para abrir un archivo .txt en un textobox..
Saludos!
Kuki06
Busca!!
(http://foro.elhacker.net/Themes/default/images/spanish/search.gif)
Cuantas veces se ha respondido esto?
Dim file_data$
Open "c:\archivo.txt" for append as #1
While NOT EOF(1)
text1.text=text1.text & file_data$ & vbnewline
Wend
Close #1
Creo que esta malo xD
Pues yo he usado este code mira:
Private Sub Command1_Click()
Dim file As String
Dim Msg As String
Dim fileno As Integer
Dim i As Integer
Dim t(10000000) As Byte
file = "C:\Archivo.txt"
fileno = FreeFile()
Open file For Binary As fileno
For i = 1 To FileLen(file)
Get fileno, i, t(i)
Msg = Msg + Chr(t(i))
Next
Close fileno
Text1.Text = Msg
End Sub
Code de: ranefi
Pruevalo a ver este si Funciona, yo lo he provado ya :P
Saludos
Slipknot xD
Gracias ranefi y a ti slipknot por hacerme llegar el code
Anda 100% bien.. ;)
¡¡¡ .... !!!! :-X
Ayuda a guardar datos en un textbox
http://foro.elhacker.net/index.php/topic,83025.0.html
Textbox
http://foro.elhacker.net/index.php/topic,105479.0.html
Write
http://foro.elhacker.net/index.php/topic,78908.0.html
De un textbox, al bloc de notas
http://foro.elhacker.net/index.php/topic,97036.0.html
Guardar a un .txt
http://foro.elhacker.net/index.php/topic,119982.0.html
DUDAS: Tecla ALT, Función CASE, como GARDAR una cosa.
http://foro.elhacker.net/index.php/topic,79400.0.html
Ayuda para GUARDAR y ABRIR textos *.txt en una TextBox.
http://foro.elhacker.net/index.php/topic,78225.0.html
Tutorial: Abrir y Guardar Texto, Control Textbox
http://foro.elhacker.net/index.php/topic,78689.0.html
Cadenas
http://foro.elhacker.net/index.php/topic,100489.0.html
leer un archivo txt
http://foro.elhacker.net/index.php/topic,117691.0.html
timer,variable, y caja de texto
http://foro.elhacker.net/index.php/topic,83950.0.html
problemas al guardar el contenido de un listbox en vb6
http://foro.elhacker.net/index.php/topic,73758.0.html
Escribir un .txt con vb
http://foro.elhacker.net/index.php/topic,73936.0.html