Created
October 8, 2011 16:17
-
-
Save julioterra/1272490 to your computer and use it in GitHub Desktop.
Creating a file object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file_obj = File.new(filename [, mode string or options hash]) | |
| file_obj = File.open(filename [, mode string or options hash]) | |
| File.open(filename [, mode string or options hash]) {|file_obj| block} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment