From: Justin To Date: 2008-06-28T00:59:59+09:00 Subject: Re: File question t=Time.new e=false if(File.size('ManageLists_Changelog.txt')==0) e=true end File.open('ManageLists_Changelog.txt', 'r').each do |c| if(c=="__#{t.month}/#{t.mday}/#{t.year} \(#{t.zone}\)") puts "TESTING" e=true end end if(e) File.open('ManageLists_Changelog.txt', 'a') do |c| c.puts "__#{t.month}/#{t.mday}/#{t.year} \(#{t.zone}\)" end end -- Posted via http://www.ruby-forum.com/.