Open FileName For OpenMethod As #FileNumber
Private Sub Command1_Click()
Open "C:\Test.txt" For OutPut As #1
Print #1, Text1.Text
Close #1
End Sub
Private Sub Command1_Click()
Open "C:\Test.txt" For Append As #1
Print #1, Text1.Text
Close #1
End Sub
Private Sub Command1_Click()
Dim F$
F = "C:\Test.txt"
Open F For Input As #1
Do While EOF(1) = False
DoEvents
Input #1, F
If Text1.Text = "" Then
Text1.Text = F
Else
Text1.Text = Text1.Text & vbNewLine & F
End If
Loop
Close #1
End Sub
Private Sub Command1_Click()
Dim F$
F = "C:\Test.txt"
Open F For Input As #1
Do While EOF(1) = False
DoEvents
Line Input #1, F
If Text1.Text = "" Then
Text1.Text = F
Else
Text1.Text = Text1.Text & vbNewLine & F
End If
Loop
Close #1
End Sub
Private Sub Command1_Click()
Dim F$
F = "g:\Test.txt"
Open F For Input As #1
Text1.Text = Input(LOF(1), 1)
Close #1
End Sub
Text1.Text = Input(LOF(1), 1)
xxxxx الناجحين
الفريق العربى
المحيط العربى
جامعة دمشق
Private Sub Command1_Click()
Open "C:\Test.txt" For Binary As #1
Put #1, , "منتدى الناجحين"
Close #1
End Sub
Private Sub Command1_Click()
Open "C:\Test.txt" For Binary As #1
Put #1, 7, "الناجحين"
Close #1
End Sub
Private Sub Command4_Click()
Dim D$
D = Space(14)
Open "C:\Test.txt" For Binary As #1
Get #1, , D
Text1.Text = D
Close #1
End Sub
Private Sub Command4_Click()
Dim D$
D = Space(8)
Open "C:\Test.txt" For Binary As #1
Get #1, 7, D
Text1.Text = D
Close #1
End Sub
Private Sub Command1_Click()
Open "C:\Test.txt" For Input Lock Read As #1
End Sub
Private Sub Command1_Click()
Open "C:\Test.txt" For Input Lock Write As #1
End Sub
Private Sub Command1_Click()
Open "C:\Test.txt" For Input Lock Read Write As #1
End Sub
Private Sub Command1_Click()
Close #1
End Sub
Private Sub Command1_Click()
Dim N%
N =FreeFile
Open FileName For OpenMethod As #N
End Sub
Private Sub Command1_Click()
Close #N
End Sub