File.open(filename, mode="r" [, opt]) â fileFile.open(filename [, mode [, perm]] [, opt]) â fileFile.open(filename, mode="r" [, opt]) {|file| block } â objFile.open(filename [, mode [, perm]] [, opt]) {|file| block } â obj
Class Public methods
With no associated block, File.open is a synonym for ::new. If the optional code block is
given, it will be passed the opened file as an argument and
the File object will automatically be closed when
the block termina