All,
I have tried the following code in both VB and PBDLL.
Much to my dismay, VB reads my file in 3 seconds and PBDLL takes between 11 and 13 seconds. Is there something I am missing?
Thanks In Advance,
Rich
''***********************************************************
FUNCTION LoadTextFile(BYVAL sFileName AS STRING) AS LONG
DIM iFreeFile AS INTEGER
DIM strTemp AS STRING
DIM sStart AS STRING
DIM sEndTime AS STRING
sStart = TIME$
iFreeFile = FREEFILE
OPEN sFilename FOR INPUT AS #iFreeFile
WHILE NOT EOF(iFreeFile)
LINE INPUT #iFreeFile, strTemp
WEND
CLOSE #iFreeFile
sEndTime = TIME$
END FUNCTION
I have tried the following code in both VB and PBDLL.
Much to my dismay, VB reads my file in 3 seconds and PBDLL takes between 11 and 13 seconds. Is there something I am missing?
Thanks In Advance,
Rich
''***********************************************************
FUNCTION LoadTextFile(BYVAL sFileName AS STRING) AS LONG
DIM iFreeFile AS INTEGER
DIM strTemp AS STRING
DIM sStart AS STRING
DIM sEndTime AS STRING
sStart = TIME$
iFreeFile = FREEFILE
OPEN sFilename FOR INPUT AS #iFreeFile
WHILE NOT EOF(iFreeFile)
LINE INPUT #iFreeFile, strTemp
WEND
CLOSE #iFreeFile
sEndTime = TIME$
END FUNCTION
Comment