On Tue, Apr 01, 2003 at 01:04:08PM +0900, Bil Kleb wrote: > Does anyone have a code snippet to read Fortran unformatted files > (sequential binary files with 4-byte record lengths mixed in before > and after each record)? If it helps, druby sends binary objects (Marshal strings) preceded by a 4-byte record length; look at drb/drb.rb functions 'load' and 'dump'. It uses 'pack' and 'unpack' to handle the record lengths. It might provide enough of a hint for you to do what you need. druby (a.k.a. DRb) is available from RAA. Regards, Brian.