Skip to content

Instantly share code, notes, and snippets.

@Benabik
Created October 25, 2011 18:56
Show Gist options
  • Save Benabik/1313840 to your computer and use it in GitHub Desktop.
Save Benabik/1313840 to your computer and use it in GitHub Desktop.
for open($filename) -> $f.close {
$data = $f.read
}
with open(filename) as f:
data = f.read
File.open(filename) do |f|
data = f.read
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment