If call method HTML file not create

K

King Maker

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
 
H

Hassan Schroeder

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

??? If you call *what* method?
i dont know where is the problem plz help me

And in the name of all that's holy, why are you writing such god-awful
deprecated invalid 1996-ish "html" ?? Just wondering...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top