almubarmeg
05-08-2003, 10:11 PM
Hello, my friends
I have a problem with files. My program is only works with the files that have the extention .txt. What i want is, let the program works for opening document and pdf files to deal with . how can i do that ....these are the codes below
Do While Not EOF(1)
Line Input #1, stringline(linecount)
...........
...........
...........
loop
Private Sub lbopen_Click()
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
.Filter = "All Files (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sfile = .FileName
Open sfile For Input As #1
End With
End sub
I have a problem with files. My program is only works with the files that have the extention .txt. What i want is, let the program works for opening document and pdf files to deal with . how can i do that ....these are the codes below
Do While Not EOF(1)
Line Input #1, stringline(linecount)
...........
...........
...........
loop
Private Sub lbopen_Click()
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
.Filter = "All Files (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sfile = .FileName
Open sfile For Input As #1
End With
End sub