What comes to mind is use timer to check the file.
If file has text, msg to the channel, clean the file or remove file
Wait for another new text write into the file.