Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Input-loop/Elena/input-loop-1.elena
Normal file
8
Task/Input-loop/Elena/input-loop-1.elena
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import system'routines;
|
||||
import system'io;
|
||||
import extensions'routines;
|
||||
|
||||
public program()
|
||||
{
|
||||
ReaderEnumerator.new(File.assign:"file.txt").forEach(printingLn)
|
||||
}
|
||||
12
Task/Input-loop/Elena/input-loop-2.elena
Normal file
12
Task/Input-loop/Elena/input-loop-2.elena
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import system'io;
|
||||
|
||||
public program()
|
||||
{
|
||||
using(var reader := File.assign:"file.txt".textreader())
|
||||
{
|
||||
while (reader.Available)
|
||||
{
|
||||
console.writeLine(reader.readLine())
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue