From: Shashank Date Date: 2003-06-22T00:42:36+09:00 Subject: Re: reading text line "Dan" wrote in message > i want to read a line of string from a file every other line > > line one > line two > line three > line four > > want it to print > > line one > line three > Simple solution (without error handling): f = File.open("testfile","r") while(!f.eof) s = f.gets puts s f.gets end f.close