From: 7stud -- Date: 2011-03-04T12:11:29+09:00 Subject: Re: How can i get the first letter of this string Wow...that's strange: when I run my example, no log file is created. I wonder why that is??? In other words, you are running some extra code that writes to a file, and you want us to troubleshoot that code without seeing it? O...kay. Your statement that writes to the file takes one byte of the two bytes making up the and writes the single byte to the file, which is then interpreted as gibberish by whatever application you are using to view the file. -- Posted via http://www.ruby-forum.com/.