Programalama > VISUAL BASIC


Ort. 0
Puan ver:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Private Sub Command1_Click()
Open "MyFile.txt" For Output As #1
‘ MyFile.Txt dosyası açılır.
Print #1, Text1.Text
‘ Textbox’a bilgiler yazılır.
Close #1
End Sub
Private Sub Command2_Click()
Text1.Text = "" ‘ Textbox’ı temizler.
Open "MyFile.txt" For Input As #1 ‘ Açılan "MyFile.txt" dosyası okunur.
Do Until EOF(1)
Line Input #1, temp$
If Text1.Text <> "" Then
‘Eğer TextBox kutusu boş değilse yeni text ekle.
Text1.Text = Text1.Text & vbCrLf & temp$
Else
Text1.Text = temp$
End If
Loop
Close #1 ‘ Dosyayı kapat.
End Sub


Yorumlar                 Yorum Yaz
mucize19 (0) Sakıncalı Yorum 23 April 14:28
bilgiler için teşekkürler çok işime yaradı
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2025 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.