From: Li Chen Date: 2008-09-12T22:10:57+09:00 Subject: Re: strange behaviors in writing/saving file Hi Patrick, Thanks for the input. Now the problem is sovled by changing the mode 'w' to 'a' as following: File.open('test.txt','a'){|f| puts e.inner_text; f.puts e.inner_text} Li -- Posted via http://www.ruby-forum.com/.