Hi interstellar, Good that you have solved your problem yourself. But still, I would like give you a small piece of information, which I got from this forum. The below-given link will take you to a page that contains crystal-clear information about how to read from and write to excel files:
http://wiki.rubygarden.org/Ruby/page/show/ScriptingExcel The below piece of code creates a simple html file and writes data to it: # variable definitions number_of_cols = 2 column_names = ["Step number","Result"] def create_html(file_path,number_of_cols,column_names) end_of_loop = column_names.length - 1 output_html_file = File.new(file_path, File::CREAT|File::TRUNC|File::WRONLY) output_html_file.write("<table border = " + number_of_cols.to_s + ">") output_html_file.write("<tr>") for i in 0..end_of_loop output_html_file.write("<td><b>") output_html_file.write(column_names[i]) output_html_file.write("</b></td>") end output_html_file.write("</tr>") output_html_file.close end def write_result(file_path,step_number,result_or_results) output_html_file = File.open(file_path, File::APPEND|File::WRONLY) output_html_file.write("<tr><td>") output_html_file.write(step_number) output_html_file.write("</td><td>") output_html_file.write(result_or_results[i]) output_html_file.write("<br>") output_html_file.puts("</td></tr>") output_html_file.close end You may also find file handling information from the 'Basic Input/Output' section of the 'Ruby Guide': Start -> Programs -> Ruby -> Ruby Documentation -> Ruby Book Help -> Basic Input Ouput Thanks and hope I have not wasted your time, Vijay. --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5918&messageID=16562#16562 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
