From: Stefan Rusterholz Date: 2007-08-16T21:49:14+09:00 Subject: Re: reading byte stream from network unknown wrote: > typedef struct header{ > UINT32 x; > UINT32 y; > UINT32 z; > } header_type; Take a look at unpack (ri String#unpack) Regards Stefan -- Posted via http://www.ruby-forum.com/.