From: Martin Kahlert Date: 2001-10-23T19:15:35+09:00 Subject: [ruby-talk:23034] Howto read binary data? Hi! I want to read a file containing double values in binary representation, i.e. they have been written from C using double variable; write(fd, &variable, sizeof(variable)); How can i read this file from ruby and stuff the data into a ruby double variable? (The file has been built on the same machine, so endianess should not be a problem). Thanks in advance Martin. PS: I would be interested in the method of writing the file, too. -- The early bird catches the worm. If you want something else for breakfast, get up later.