From: Richard Schneeman Date: 2008-08-24T04:21:31+09:00 Subject: Open file, get first line, delete first line close file Hey, i'm trying to open a file, get the first line of the file, delete that line from the file, and then close the file. Using ruby 1.8.6. I've tried using The_File = IO.readlines("public/languages/chinese/practice.txt") & The_File = open('public/languages/chinese/practice.txt','r+') but i can't figure out the correct syntax for how to delete a line in a file, and then save that file. -- Posted via http://www.ruby-forum.com/.