-
-
Save akahn/50404befabb1b9417c2d 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
# "Shift" the first line off of the file | |
read = File.open(file) | |
first_line = read.gets | |
File.open(file, 'w') do |f| | |
read.each_line {|line| f.puts line } | |
read.close | |
first_line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment