# If call method HTML file not create

**URL:** <https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243>\
**Category:** Ruby\
**Created:** [May 27, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243 "2010-05-27T12:51:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetzubair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Post date:** [May 27, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243/1 "2010-05-27T12:51:27Z")

</div>

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 “**RESULT\<\B\>  
”  
fileHtml.puts “**

**”  
fileHtml.puts “ **** ”  
fileHtml.puts “ ****”**

fileHtml.puts “

**”  
fileHtml.puts “ ****”**

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

| **Field Data** | ”  
fileHtml.puts “ | **Log** | **Result** |
| #{@fielddata} | ”  
fileHtml.puts “ | #{@log} | #{@result} |

---

<div class="post-metadata">

**Author:** ![sweetzubair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Post date:** [May 27, 2010, 4:41pm UTC](https://www.ruby-forum.com/t/if-call-method-html-file-not-create/189243/2 "2010-05-27T16:41:49Z")

</div>

On Thu, May 27, 2010 at 3:51 AM, King M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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…
