From: bostonmacosx Date: 2006-05-04T04:15:02+09:00 Subject: Re: So I got a binary file... HI all and thanks for the help. After beating around a little. mydata = String.new f = File.open("WesObs_Sumatra_032805.sac","rb") newstring = f.read newdata = newstring.unpack('f*\n') fw = File.open("test.txt","wb") fw.write(newdata[0]) Is all I needed to do to extract the floats from the binary data in the file. Was a lot simpler then I though. I didn't know that unpack stuck things in arrays so that was the largest problem I was having. Onto problem #2. -- Posted via http://www.ruby-forum.com/.