Code:
timer 0 180 {
msg $chan $read(myfile.txt)
}


If you want it to work when the channel is idle, you might want to do something like setting a variable, and unsetting it every time someone says something in the channel. Someone else may have a better way of checking if the channel is idle. The code above will fire every 180 seconds, and in that example, the text file is in your mIRC directory. You can change that number and the file path.