Benjamin Jeeves wrote: > if I do not call build_db then alert will run fine as I want it to so > is there away around this problem. See I need the FILEIN to go though > a number of different sub routes how would I go about this.
Benjamin. I'm pretty sure that, as I said before, you're reading from the file in several different places. The 'start' subroutiine will read the first line and then call 'build_db' which may well read all of the rest of the lines. If you call 'alert' then there will be no data remaining to be read and its while loop will exit immediately. If you don't call 'build_db' then all lines in the file but the first one will still be unread and there will be some work for 'alert' to do. I'm not at all sure what your program is supposed to be doing so I can't suggest what may be the correct coding. Are you intending that both 'build_db' and 'alert' read all the way through the file? Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]