The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Thanks

Posted by barn on February 19, 2001 at 6:28 AM

Hello

thanks for replying, I've tried using a class with only instance variables as a structure and writing it out using the serializable interface thingy with ObjectOutputStream but the file format looked very different from the Delphi or C created flatfile I'm trying to read.

Hopefully I've just got it wrong somewhere along the line. I'd be grateful for an example.

Also, no one seems to know the answer to this one - how does Java cope with packed records? Its seems so straightforward in Delphi, you just declare your structure as a "packed record". In C I think you wrap your struct with #pragma pack(1).

Cheers



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us