Project

General

Profile

Bug #7267 » writer.rb

kennygrant (Kenny Grant), 11/03/2012 07:50 AM

 
#!/usr/bin/env ruby
name = "test?.txt"

File.open("./#{name}", "w") do |f|
f.write "Testing"
end

Dir.glob("./*.txt") do |f|
puts f.chars.to_a.inspect
end

Dir.glob("./#{name}") do |f|
puts f.chars.to_a.inspect
end
(4-4/4)