Anonymous user
Text processing/2: Difference between revisions
→{{header|Aime}}
(removed omit from phix) |
|||
Line 101:
=={{header|Aime}}==
<lang aime>
{
integer i;
Line 108 ⟶ 107:
if (~l != 49) {
error("
}
s = l[0];
if (
error("bad date format");
}
l[0] =
i = 1;
while (i < 49) {
i += 1;
l[i >> 1] = atoi(l[i]);
i += 1;
}
l.erase(25, -1);
}
main(void)
{
Line 140:
while (f.list(l, 0) != -1) {
if (!trap(check_format, l)) {
if (
v_form("duplicate ~ line\n", v);
}
i = 1;
goods += iclip(0,
}
}
Line 160 ⟶ 152:
o_(goods, " good lines\n");
}</lang>
{{out}} (the "reading.txt" needs to be converted to UNIX end-of-line)
|