------art_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 <dooby / d10.karoo.co.uk>:
>
>
> 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
>
>
>
>
>

------art_19999_17201527.1129918330789--