Seeing as no-one else has relpied yet, you could try this.
I admit it's a bit of a hack but...
stick a timer and a command button on a form
Code:
Option Explicit
Const CHUNK = 64
Dim strData As String 'accumilation of the data read
Dim position As Long
Dim Remaining As Long
Dim FNum As Long
Private Sub Command1_Click()
Command1.Enabled = False
FNum = FreeFile
Open "C:\testData.txt" For Binary As FNum
Remaining = LOF(FNum)
Timer1.Enabled = True
position = 1
End Sub
Private Sub Timer1_Timer()
Dim strTemp As String
If Remaining >= CHUNK Then
strTemp = Space(CHUNK)
Remaining = Remaining - CHUNK
Else
strTemp = Space(Remaining)
Timer1.Enabled = False
End If
Get #FNum, position, strTemp
strData = strData & strTemp
position = position + 1
If Timer1.Enabled = False Then
Close FNum
Command1.Enabled = True
End If
End Sub
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company