hi,
i m reading binary files into strings ...

str = file.read    # reads till EOF

.... and it sometimes happens that str.length is not equal the file 
length. so there must be EOF's somewhere in the stream before the actual 
end.

1) how should i read a block of binary data from a file in ruby?
2) how would you store binary data in ruby?
		i want to hand the data to OpenGL which doesn t expect a  		specific type.

thanks for help
- Meinrad