> Because your code was so straightforward and easy to read, I
> don't want to make any suggestions that would torture the readability and
> maintainability just for the sake of half a second of execution
> time.
Oh, come on, aren't basic programmers known for spaghetti code .
> The first thing I noticed about your code is that it is making
> string comparisons in the Select Case structure, which are
> comparatively slow.
What would be faster, a large if..else if block?
> Since a Select Case will break on the first successful
> comparison, I would rearrange the order of the comparisons to put
> the most likely matches at the top of the list, instead of "300 b"
> at the top.
This makes sense. All I need to do is look at the output file to see which
speed I have the most connections for and adjust the select case statement
based upon that.
> I am assuming that FileHandle2 may at some point be modified to
> output to a modem instead of a file.
No, that's not needed. All I need to do is create the file -- my Mailer
program (Intermail) automatically displays the file as it passes control from
it to the BBS software.
> The simplest way to do this would be with PBFILES, which has a
> buffered line input routine with a dynamically allocated buffer of any
> size you specify, up to the max string segment size.
I downloaded that from CI$ this morning and will tinker with it later
night.
> Another easy way would be to grap WINER.ZIP, the freeware version of
> Ethan Winer's BASIC Tips and Techniques.
I have that book so I can always look in there.
Thanks for the tips!
Take Care, Zack Jones
zack@hom.net
--- InterMail 2.29g
---------------
* Origin: Zack's Gotta Point (1:3611/18.10)
|