Created
August 17, 2016 09:45
-
-
Save anonymous/c1901f6971e59630c1a2c6710a688220 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
begin | |
puts "sleeping for 1 second" | |
sleep 1 | |
io = File.open("nonexisting", "r+") | |
rescue | |
retry | |
end | |
io.write("hello world") | |
puts IO.binread("nonexisting") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment