Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
You have pretty much described your own solution.
If your files are small (i.e. 200KB) then you can read the entire file into memory and then loop through it (by 32KB) sending the necessary messages. When you get to the last few bytes (<32KB) then set the correct priority and send the last message.
If the file is really large then just read 32KB from thr file send a message, read the next 32KB from the file and send a message, etc... When you get to the last few bytes (<32KB) then set the correct priority and send the last message.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum