I have a file I need to read.

The file has ANSI text interspersed with doubles (64-bit standard floating point numbers).

Let's say the floating point number is at 9 bytes from the beginning of the file.   How can I read the number and then convert the number to an integer?

I scoured Dave Thomas' "Programming Ruby 1.9" and the web but could find nothing about this.

It's gotta be easy, doesn't it?