Well. Im trying to read a txt file. I get the part on how to make it read only. I want it to read line by line. I have another script that sends info to this file. Then I want my bot to read it and msg back.
var %handle = file $+ $ticks, %data
.fopen %handle $qt($+(ssaow_,$date(m-d-yyyy),.txt))
if ($fopen(%handle)) {
while (!$fopen(%handle).eof) {
%data = $fread(%handle)
; Do whatever you like with %data
}
.fclose %handle
}