From: Ted Flethuseo on 26 Jul 2010 10:49 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/.
|
Pages: 1 Prev: stop program with entering a key... Next: RubyGems.org Still Down? |