Dirk Meijer wrote: > hi everyone, i've got a noobish question.. > is there a way to create a new file (html in this case) > and write stuff into it? > there probably is.. > i'm using Ruby 1.8.2 under windows xp > greetings, Dirk. Many ways - here's a simple one: fname = 'C:\TEMP\dirk_2005_10_21.html' File.open(fname, 'w') do |fo| fo.puts('<HTML>') fo.puts('</HTML>') end puts File.read(fname) #-> <HTML> #-> </HTML> daz