From: Jim Knowlton Date: 2009-02-03T02:39:58+09:00 Subject: Question on reading text files in Windows I am running Ruby 1.86 on Windows, and having trouble reading in some text files. For some text files, if I do something simple like: myfile = File.open("logfile.log") contents = myfile.read() puts contents I get each character seperated by a space, such as: ”= = = V e r b o s e l o g g i n g s t a r t e d : 1 / 2 8 / 2 0 0 9 1 3 : 4 5 : 0 6 B u i l d t y p e : S H I P U N I C O D E If I bring up the file in even a bare-bones editor (such as VIM), I get the file as it normally is (without any extraneous spaces). Does anyone know why this would be, or how I can work around it? It's causing issues as I am trying to write a script to search for a particular string of text, and obviously it isn't found, even though it should be. Thanks, Jim