Help with reading and writing to a file

Steve Torri storri at limbo.cs.wustl.edu
Fri Jun 11 18:04:22 CEST 2004


On Fri, Jun 11, 2004 at 10:19:39AM +0200, Michel Bardiaux wrote:
> Steve Torri wrote:
> 
> >So the Group_Set's variables m_speed = 5000 and m_time = 9000. So when
> >this is written to a file I should see a 5000 and a 9000 in the file
> >if I read it with hexedit. 
> 
> I suggest you post the hex dump of the file.
> 
> >The reader which reads the values back from
> >the file uses the macros I described above. When I print out the
> >values that I have read from the file I get the following values:
> >
> >  m_speed = 50009000
> >  m_time = 0
> >

The binary file is attached. There are three uint32_t variables
printed before the two mpf_class followed by a uint32_t variable.

Stephen
-- 
Stephen Torri
Department of Computer Science
Washington University in St Louis
Email: storri at cse.wustl.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpz_test.dat
Type: application/octet-stream
Size: 24 bytes
Desc: not available
Url : /list-archives/gmp-discuss/attachments/20040611/eca1bdfb/mpz_test.obj


More information about the gmp-discuss mailing list