almubarmeg
05-07-2003, 12:01 AM
Hello. my friends
i have a problem with files. when i choose a file name from "open window"
how can i put this file name into this code to work.
code 1:
Open "c:\myproject\nlwa.txt" For Input As #1
and the code for "open window "is
code 2:
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
.Filter = "All Files (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sfile = .FileName
End With
clearly what i want is how to fit the selected file from the open window in code 1 in order to let the program read it .......the same problem with "save"
any help will be appreciated
i have a problem with files. when i choose a file name from "open window"
how can i put this file name into this code to work.
code 1:
Open "c:\myproject\nlwa.txt" For Input As #1
and the code for "open window "is
code 2:
With dlgCommonDialog
.DialogTitle = "Open"
.CancelError = False
.Filter = "All Files (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
sfile = .FileName
End With
clearly what i want is how to fit the selected file from the open window in code 1 in order to let the program read it .......the same problem with "save"
any help will be appreciated