thank you it works.. :) Godbless! On Fri, Apr 17, 2009 at 5:11 PM, Željko Filipin <zeljko.fili...@wa-research.ch> wrote:
> On Fri, Apr 17, 2009 at 11:03, Claire Hill <cart...@gmail.com> wrote: > > i was wondering if there's a way to put the output of a ruby script into > a file, like using puts("TEST PASSED" + "#{Time.now}") into a certain file > located in c:\log.txt. > > I did not try it, but something like this should work: > > File.open('c:\log.txt', 'w') do |file| > file.puts("TEST PASSED" + "#{Time.now}") > end > > Željko > -- > http://watirpodcast.com/ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---