def Readfrom_file(fieldata,log,result)
   @fielddata = 1234
   @log = 123
  @result = 12322
puts @fielddata
puts @log
puts @result


fileHtml = File.new("C:\\test\\test.html", "w+")
fileHtml.puts "<CENTER><B>RESULT<\B></CENTER><br>"
fileHtml.puts "<TABLE WIDTH='50' BORDER='1'  ALIGN='center'>"
fileHtml.puts "<TR><TD><B><FONT COLOR='RED'>Field Data</FONT></B><TD>"
fileHtml.puts "<TD><B><FONT COLOR='RED'>Log</FONT></B></TD>"
fileHtml.puts "<TD><B><FONT COLOR='RED'>Result</FONT></B></TD></TR>"

fileHtml.puts "<TR><TD>#{@fielddata}<TD>"
fileHtml.puts "<TD>#{@log}</TD>"
fileHtml.puts "<TD>#{@result}</TD></TR>"

fileHtml.close()
system("start C:\\test\\test.html")
 end



if i call this method that time html file not created if i remove the
method line that time html file created

i dont know where is the problem plz help me
-- 
Posted via http://www.ruby-forum.com/.