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"
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"
Please login to continue.