Created
October 23, 2009 06:59
-
-
Save vadims/216703 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env ruby | |
f = File.open("bar", File::RDWR|File::CREAT, 0600) | |
f.sync=true | |
f.read | |
f.write "Hello" | |
puts "Should be 5: #{f.pos}" | |
f.close | |
`rm bar` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment