programming.nbk: Home | Index | Next Page: Ruby: for | Previous Page: Ruby: Data Storage


 Ruby: File I/O

File.open(<filename>, <mode>)

Modes:

File.open opens the file if no block is given. If a block is given, the file is passed to the block as an argument, and the file is closed when the block terminates.

File::seek(<offset>)

Offsets:


programming.nbk: Home | Index | Next Page: Ruby: for | Previous Page: Ruby: Data Storage


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time