3 local infn
= arg
[1] or "psyc___psyced.org_@welcome.txt";
4 local tfn
= infn
..".0";
6 local fi
= assert(io
.open(infn
, "r"));
7 local fo
= assert(io
.open(tfn
, "w"));
10 local isk8qutim
= arg
[2];
12 local sflg
= fi
:read();
13 if not sflg
then break; end;
15 if not fi
:read() then break; end;
17 local suni
= fi
:read();
18 if not suni
then break; end;
19 local sdate
= fi
:read();
20 if not sdate
then break; end;
21 local stext
= fi
:read();
22 if not stext
then break; end;
23 if sflg
== "in" then sflg
= "*>";
24 elseif sflg
== "out" then sflg
= "*<";
27 fo
:write(sflg
, " ", sdate
, " ", suni
, "\n", stext
, "\n");
36 if infn
:match("%.txt$") then
37 local ifn
= infn
:sub(1, -4).."idx";
41 print(string.format("%i messages converted", cnt
));
44 psyc://ketmar.no-ip.org/~ketmar
46 not dad, only family friend %-)