From: Bill Guindon Date: 2007-06-14T06:11:27+09:00 Subject: Re: Learn to Program, by Chris Pine On 6/13/07, Tm Bo wrote: > Hello all. Thanks to all the posters who came before me! You've been > tremendous help. I have a quick question on Chapter 11 - Reading and > Writing, Section 11.3: > > > file_name = 'TestFile.txt' > test_string = 'Nothing!' > > File.open file_name, 'w' do |f| > f.write test_string > end > > read_string = File.read file_name > puts(read_string == test_string) > > > I poked around the web, but I can't find out what the 'w' is for. Can > anyone shed any light? Muchas gracias in advance. It's the file 'mode'. w = write. http://www.zenspider.com/Languages/Ruby/QuickRef.html#15 > -Todd > > -- > Posted via http://www.ruby-forum.com/. > > -- Bill Guindon (aka aGorilla) The best answer to most questions is "it depends".