RosettaCodeData/Task/Input-loop/Aime/input-loop.aime

10 lines
122 B
Plaintext

void
read_stream(file f)
{
text s;
while (f_line(f, s) != -1) {
# the read line available as -s-
}
}