Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
|
|
@ -0,0 +1,16 @@
|
|||
File.write("input.txt", "a\nb\nc")
|
||||
|
||||
lines = Channel(String).new
|
||||
|
||||
spawn do
|
||||
File.each_line("input.txt") do |line|
|
||||
lines.send(line)
|
||||
end
|
||||
lines.close
|
||||
end
|
||||
|
||||
while line = lines.receive?
|
||||
puts line
|
||||
end
|
||||
|
||||
File.delete("input.txt")
|
||||
Loading…
Add table
Add a link
Reference in a new issue