From: Skeets Date: 2006-07-30T15:50:11+09:00 Subject: Re: How to Create a New File Skeets wrote: > let's say I want to create a new file named new_file.txt. how do i do > this in ruby? it would seem to be trivial, however, i'm going through > the pickaxe book and i can't find anything that relates to this. > > tia... i know why my initial attempt was mucked up... f = File.open( 'new_file.txt', 'w' ) i tried to assign it to a variable - that's a no no in this case.