i have a thread that will write messages to a file. Once a day, i want to be able to transmit the messages in the file out via tcpip. Not sure how to do this.
Because of what Jim has mentioned, I generally do not use spool files anymore. Normally I write everything to a SQLite database with an is_sent flag. This way if something is being writting to it at the same time that things are being pulled there is no loss of data.
Otherwise you need to pause writing to the spool file until after adequate time has been allowed for retrieving it, this is where the scheduling features come in handy for the inbound thread, you will just have to write a tcl proc or something to pause the ob thread that writes to the spool file during that time.