read

dir.read â string or nil
Instance Public methods

Reads the next entry from dir and returns it as a string. Returns nil at the end of the stream.

d = Dir.new("testdir")
d.read   #=> "."
d.read   #=> ".."
d.read   #=> "config.h"
doc_ruby_on_rails
2015-04-03 12:46:06
Comments
Leave a Comment

Please login to continue.