Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Input-loop/Sidef/input-loop.sidef
Normal file
8
Task/Input-loop/Sidef/input-loop.sidef
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var file = File(__FILE__)
|
||||
file.open_r(\var fh, \var err) || die "#{file}: #{err}"
|
||||
|
||||
fh.each { |line| # iterates the lines of the fh
|
||||
line.each_word { |word| # iterates the words of the line
|
||||
say word
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue