From: Ted Flethuseo on
Cool, it works well, but I would like to read x integers at a time.
because the files I might read can be pretty large.

I also tried to read a binary file in a computer with linux. So I copied
my binary file and the binreader script onto that computer. Ran it, and
got completely different numbers.

a = Array.new
File.open(inFile, "rb") { |f|
a = f.read.unpack("I*")
puts a
}
--
Posted via http://www.ruby-forum.com/.