Anonymous user
Input loop: Difference between revisions
m
→{{header|Elena}}
mNo edit summary |
imported>Arakov |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1,290:
=={{header|Elena}}==
ELENA
Using ReaderEnumerator
Line 1,299:
public program()
{
ReaderEnumerator.new(File.assign
}</syntaxhighlight>
Using loop statement
Line 1,306:
public program()
{
using(var reader := File.assign
{
while (reader.Available)
Line 3,051:
fn main() {
mut ay_view_content := []string{}
file :=
// check if file exists
if os.is_file(file) == false {
print(
exit(-1)
}
ay_view_content << os.read_lines(file) or {print(err) exit(-2)}
for line in ay_view_content {
if line !=
if line ==
}
}
Line 3,066:
=={{header|Wren}}==
<syntaxhighlight lang="
File.open("input.txt") { |file|
|