Exception when writing to a file

Thanks! Worked like a charm :slight_smile:

···

-----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)