From: Gavin Sinclair Date: 2002-12-07T12:27:06+09:00 Subject: Re: File From: "Daniel Carrera" > Thanks for the help. > > File.rename is behaving strangely. The file name ended up have an extra > non-printing character at the end. Instead of naming the file "filename" > it names it "filename^J". > > I don't know what character "^J" is. > J is the tenth letter of the English alphabet, so ^J is ASCII character #10, which Ruby tells me (10.chr) is "\n". 13.chr is "\r". Maybe a chomp! is in order. Gavin