From: Alex Young Date: 2007-09-27T16:11:43+09:00 Subject: Re: some file operations blufur wrote: > A couple quick questions: > > how can my ruby program tell me how many lines are in a text file? If it's huge, `wc -l` is probably best. > > 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! > -- Alex