From: Li Chen Date: 2008-09-12T22:07:32+09:00 Subject: Re: strange behaviors in writing/saving file Antonin Amand wrote: > What's the class of e.inner_text ? Did you try f.write ? 1) the class of e.inner_text is String. 2) the problem is sovled by changine mode 'w' to mode 'a' 3) either f.write or f.puts saves the last line in mode 'w' but they work well in mode 'a' Li -- Posted via http://www.ruby-forum.com/.