Skip to content

Instantly share code, notes, and snippets.

@atton
Created July 23, 2012 10:31
Show Gist options
  • Save atton/3162992 to your computer and use it in GitHub Desktop.
Save atton/3162992 to your computer and use it in GitHub Desktop.
file = File.open("filename","r")
2.times { file.gets.chomp }
data = ""
while data = file.gets
puts data
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment