From: King Maker on
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/.

From: Hassan Schroeder on
On Thu, May 27, 2010 at 3:51 AM, King Maker <sweetzubair(a)gmail.com> wrote:

> 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...

--
Hassan Schroeder ------------------------ hassan.schroeder(a)gmail.com
twitter: @hassan

 | 
Pages: 1
Prev: Badly organized code?
Next: unsubscribe