Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
|
|
@ -2,9 +2,11 @@ import system'io;
|
|||
|
||||
public program()
|
||||
{
|
||||
var reader := File.assign:"file.txt".textreader();
|
||||
while (reader.Available)
|
||||
using(var reader := File.assign:"file.txt".textreader())
|
||||
{
|
||||
console.writeLine(reader.readLine())
|
||||
while (reader.Available)
|
||||
{
|
||||
console.writeLine(reader.readLine())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
9
Task/Input-loop/XPL0/input-loop.xpl0
Normal file
9
Task/Input-loop/XPL0/input-loop.xpl0
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
int C;
|
||||
[repeat \read file
|
||||
repeat \read line
|
||||
repeat C:= ChIn(1); \read word
|
||||
ChOut(0, C);
|
||||
until (C<^A ! C>^z) & (C<^0 ! C>^9); \non-alphanumeric
|
||||
until C < $20; \CR, LF, or EOF
|
||||
until C = \EOF\ $1A;
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue