From: Krithika San Date: 2009-11-11T04:45:07+09:00 Subject: Re: Create HTML files using RUBY I am told to create static HTML page and asked to write something like what Marnen has quoted. External library and CGI script are also not required to use. So let me try what Marnen has mentioned. Could you tell me if I can do something like this file_html = File.new("sample.html", "w+") file_html.puts "" file_html.puts "
This is a color

" file_html.puts "
This is yellowww
" file_html.puts "" file_html.close() system("start sample.html") Thanks, Krithika Justin Collins wrote: > Krithika San wrote: >> Krithika >> > > What you are trying to do is still unclear to me, but the CGI library > included with Ruby probably does what you need, if you are not allowed > to use any external libraries. > > http://ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI/HtmlExtension.html > > -Justin -- Posted via http://www.ruby-forum.com/.