That's a ruby question. f2.puts "#{a[x]},#{url}.#{Time}"
In a string, you want to encapsulate variables and code using #{}.You can do code in addition to variables. In the following examples, I am finding the logged times for a web service call and it's response. I have am putting it into a csv file for analysis later. line = %Q("#{counter}","#{user}","#{temp.type}","#{temp.wstype}","#{completionTime}","#{getPrettyTime(temp.timevalue)}","#{temp.cleanMessage}","#{getPrettyTime(match.timevalue)}","#{match.cleanMessage}"\n) File.open(@csvFile, 'a+') {|f| f.write(line) } Dave -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com