--- In [email protected], "brucexs" <bswit...@...> wrote:
> >
> > Suppose file.txt has layout
> > yyyymmdd hhmm rrrr message text
Really not.
It's:
yyyymmdd message
because recur = "1 hour" and time = "0800" always.
(It's more faster.)
> >
> > 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
> configure.importsched(("c:/path/file.ini")
>
The code is good!
Thank you
Best regards
Jose