[ next ] [ prev ] [ contents ] [ up to Reason 7 ] Invitation To Ruby

Reason 7 (cont) -- Ruby Documentation

Good Online Reference -- ri

Command line Ruby library reference.

bash$ ri File::open
------------------------------------------------------------- File::open
     File.open( fileName, aModeString="r" ) -> file
     File.open( fileName [, aModeNum [aPermNum]] ) -> file
     File.open( fileName, aModeString="r" ) {| file | block } -> nil
     File.open( fileName [, aModeNum [aPermNum]] ) {| file | block } ->
     nil
------------------------------------------------------------------------
     With no associated block, open is a synonym for File::new. If the
     optional code block is given, it will be passed file as an
     argument, and the file will automatically be closed when the block
     terminates. In this instance, File::open returns nil.


[ next ] [ prev ] [ contents ] [ up to Reason 7 ] Copyright 2002 by Jim Weirich.
All rights reserved.