From: Joe Bacigalupa Date: 2006-09-29T05:35:15+09:00 Subject: Re: Files? #opening a file for writing my_file = File.new('g:/ruby/myFile.txt', 'w') # if you tried to open the file like this and the file didn't exist already this would fail my_file = File.new('g:/ruby/myFile.txt', 'r') The modes are platform dependant - I'm assuming Windows. Jonathan Denni wrote: > I'm getting quite lost and discouraged trying to learn Ruby. [I have no > programming experiance, just html and css] > > for something to start with, I would like to use ruby to create a file > in directory G:\Ruby named "myFile.html" > > that seems simple enough, but I can't figure out how to do it [and > http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_io.html isn't > helping] > > thanks :) > > -- > Posted via http://www.ruby-forum.com/.