From: Kent Dahl Date: 2004-03-17T18:24:32+09:00 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___)