Skip to content

Instantly share code, notes, and snippets.

@dtrasbo
Created March 26, 2011 16:32
Show Gist options
  • Save dtrasbo/888421 to your computer and use it in GitHub Desktop.
Save dtrasbo/888421 to your computer and use it in GitHub Desktop.
1_000.times do |i|
File.open('test.txt', 'a+') do |f|
f.write File.read('lipsum.txt')
end
puts "written #{i} time(s)"
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment