# Reading and writing the html file

**URL:** <https://www.ruby-forum.com/t/reading-and-writing-the-html-file/179644>\
**Category:** Rails\
**Created:** [December 1, 2009, 6:59am UTC](https://www.ruby-forum.com/t/reading-and-writing-the-html-file/179644 "2009-12-01T06:59:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [December 1, 2009, 6:59am UTC](https://www.ruby-forum.com/t/reading-and-writing-the-html-file/179644/1 "2009-12-01T06:59:14Z")

</div>

Dear all,  
the below problem makes me worse.  
actually i read html file.  
@file\_path = d:/temp/History/regst.html  
@content = File.read ("#@file\_path}")  
i dispaly in my view like \<%=@content%\>  
this causes style issues in my page …  
why waht is the problem.  
Pls help me to sort the issues
