June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -1,9 +1,9 @@
file f;
text s;
f_affix(f, "src/aime.c");
f.affix("src/aime.c");
while (f_line(f, s) != -1) {
while (f.line(s) != -1) {
o_text(s);
o_byte('\n');
}

View file

@ -1,2 +1,3 @@
try f <- open('foobar.txt'):
print line for line in f
try f = open('foobar.txt'):
for line in lines f:
print line

View file

@ -15,7 +15,7 @@ int main(void)
exit(EXIT_FAILURE);
while ((read = getline(&line, &len, stream)) != -1) {
printf("Retrieved line of length %zu :\n", read);
printf("Retrieved line of length %u :\n", read);
printf("%s", line);
}

View file

@ -0,0 +1,6 @@
path := "file.txt":
while (true) do
input := readline(path):
if input = 0 then break; end if:
#The line is stored in input
end do: