Hi...
QuoteIs faster way use WHILE/ENDWILE loop instead DO/UNTIL ?
They should be about the same. I think the difference between the two is that with a DO/UNTIL loop it checks the conditional flag of the loop EOF(file1) at the end of the loop, and the WHILE/ENDWHILE checks the conditional flag at the start of the loop.
You could always time how long each loop takes using the GetTickCount API function.
DECLARE "kernel32.dll", GetTickCount(),int
TicksBeforeLoop=GetTickCount()
Do
'read contents of file here
Until EOF(file1)
TicksAfterLoop=GetTickCount()
MillisecondsItTookForLoop=TicksAfterLoop-TicksBeforeLoop
if you time one cycle of the while loop, is it 10 milliseconds?
GetTickCount only has a resolution of 10ms, so it's not very useful for timing one iteration of code. Run 1000 iterations of each.