From: blufur Date: 2007-09-27T12:23:21+09:00 Subject: some file operations A couple quick questions: how can my ruby program tell me how many lines are in a text file? how can i have my ruby program edit the last line of a text file (not add another line at the end, but get and then change the line at the end). Thanks for any suggestions!