From: Dirk Meijer Date: 2005-10-22T03:12:13+09:00 Subject: Re: newb question? ------=_Part_19999_17201527.1129918330789 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline wonderful how a little w can change my entire situation :-) greetings, Dirk. 2005/10/21, daz : > > > 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 =3D 'C:\TEMP\dirk_2005_10_21.html' > > File.open(fname, 'w') do |fo| > fo.puts('') > fo.puts('') > end > > puts File.read(fname) > > #-> > #-> > > > daz > > > > > ------=_Part_19999_17201527.1129918330789--