T
tdKno
Unregistered / Unconfirmed
GUEST, unregistred user!
Dim dcfData() As Byte
Dim file_length As Long
Dim fnum As Integer
CommonDialog1.ShowOpen
If CommonDialog1.FileName <> "" Then
file_length = FileLen(CommonDialog1.FileName)
fnum = FreeFile
ReDim dcfData(1 To file_length)
Open CommonDialog1.FileName For Binary As #fnum
Get #fnum, 1, dcfData
Close fnum
Else
MsgBox "No file specified."
Exit Sub
End If
Dim file_length As Long
Dim fnum As Integer
CommonDialog1.ShowOpen
If CommonDialog1.FileName <> "" Then
file_length = FileLen(CommonDialog1.FileName)
fnum = FreeFile
ReDim dcfData(1 To file_length)
Open CommonDialog1.FileName For Binary As #fnum
Get #fnum, 1, dcfData
Close fnum
Else
MsgBox "No file specified."
Exit Sub
End If