From: "Mehr, Assaph (Assaph)" Date: 2004-03-18T06:26:39+09:00 Subject: Re: Exception when writing to a file Thanks! Worked like a charm :) -----Original Message----- From: Kent Dahl [mailto:kentda+news@stud.ntnu.no] Sent: Wednesday, 17 March 2004 8:25 PM To: ruby-talk ML Subject: Re: Exception when writing to a file Mehr, Assaph (Assaph) wrote: > But this doesn't: > > docs = File.readlines( File.join(File.dirname(__FILE__), > "doclist.txt") ) Does your lines in docs contain the trailing newlines from doclist.txt? Perhaps that is what the call to File.open doesn't like. -- (\[ Kent Dahl ]/)_ _~_ _____[ http://www.pvv.org/~kentda/ ]_____/~ ))\_student_/(( \__d L b__/ Master of Science in Technology ) ( \__\_�|�_/__/ ) _) Industrial economics and technology management ( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)