ruby-uebungen/Assignment_030/solution
Thomas Smits 25d5ac7ffd Initial commit 2023-05-23 09:19:31 +02:00
..
readme.md Initial commit 2023-05-23 09:19:31 +02:00

readme.md

Lösung: Klasse Dir und IO

















































































```ruby def print(f) n = 0 puts f, "\n" IO.foreach(f) do |line| puts "%4d %s" % [ n, line ] n += 1 end

puts "\n\n"

end

Dir.foreach('.') do |f| print f if /.*.txt$/ =~ f end