Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
$ irb
1.9.3p327 :001 > logfile = File.new('some_file.txt', 'w')
=> #<File:some_file.txt>
1.9.3p327 :002 > logfile.write("my content")
=> 10
1.9.3p327 :003 > quit
$ cat some_file.txt
my content
$ irb
1.9.3p327 :001 > logfile = File.new('some_file.txt', 'w')
=> #<File:some_file.txt>
1.9.3p327 :002 > logfile.write("something else")
=> 14
1.9.3p327 :003 > quit
$ cat some_file.txt
something else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.