>
> I'm sorry. I need to set alarms for each line in file.txt, not for file.txt.
> Anyway, thanks for your time.
Suppose file.txt has layout
yyyymmdd hhmm rrrr message text
where rrrr is recurrence string formatted as per recur: keyword in descirption
of commend file layout. Then something like this (not tested, no error checks,
assumes always a recur):
local fhin = file.open("c:/path/file.txt","r")
local fhout = file.open("c:/path/file.ini","w")
for each ln in fh
local dt = ln.nextword("ln")
local tm = ln.nextword("ln")
local rcr = ln.nextword("ln")
fhout.writeline("[1]")
fhout.writeline("event = "++dt++" "++tm++" recur: "++rcr)
fhout.writeline("cmd = Message "++ln)
endfor
fhout.close
fhin.close