FC> > 'this is very speedy and I adapted it
FC> > 'from Ethan Winers Basic Techniques and Utilities
FC>This looks pretty clever to me. I wonder, though, if it would be faster
f
FC>you substituted BUFFER$="" for Buffer$ = SPACE$(BufSize). Or perhaps it
wou
FC>be slower to do it that way because the size of the string would have to
e
FC>modified....
I'm pretty sure that it needs Buffer$ = SPACE$(BufSize). That determines how
big of a chunk of the file it reads at a time. Actually when I look at what
I ended up with there is very little simularity to what I took out of the
book. The book was showing how to copy a file in this fashion. That is why I
wasn't too sure if I was over reading with the last Buffer$ read, but what
happens I think is that when the function I made hits the eof it stops
reading and the rest of the buffer$ is space which doesn't interfere with
tallying carriage returns. But this would be a problem copying files because
the extra spaces would get tacked onto the file.
---
* SLMR 2.1a *
--- InterEcho 1.11
---------------
* Origin: The DataStream (Node 1), Peoria, IL (1:232/30)
|