June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue