method

read

v1_8_7_72 - Show latest stable - Class: Dir
read()
public

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"