Skip to content

Instantly share code, notes, and snippets.

@julioterra
Created October 8, 2011 16:17
Show Gist options
  • Select an option

  • Save julioterra/1272490 to your computer and use it in GitHub Desktop.

Select an option

Save julioterra/1272490 to your computer and use it in GitHub Desktop.
Creating a file object
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