From: Josh Cheek Date: 2011-02-21T02:50:49+09:00 Subject: Re: question about a small piece of code --001636eef0650beb14049cba6356 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 20, 2011 at 11:44 AM, Gaba Luschi wrote: > Hi, > > What does the 'w' in the "CSV.open" part of the below code do? > > CSV.open('text2.txt','w') do |csv| > people.each do |person| > csv < > -- > Posted via http://www.ruby-forum.com/. > > "Write-only, truncates existing file to zero length or creates a new file for writing" You can see all the options at the top of this page: http://ruby-doc.org/core/classes/IO.html --001636eef0650beb14049cba6356--