🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14503

Re: Reading Files made with BP7

#14503
From: Kobus du Toit
Date: Fri, 27 Aug 1999 00:00
35 lines
1653 bytes
If nobody can help you, you might try to write something in pascal to convert
that random file to a sequential file and read that in.

Kobus

Hans Hinnekint wrote:

> I need to read some files, made with BP7.
>
> The files were writen using records of type TOldInstructionRec.
>
>    Type
>       PCommentType = ^TCommentType;
>       TCommentType = Array [0..37] of Char;
>
>       POldInstructionRec = ^TOldInstructionRec;
>       TOldInstructionRec = Record
>             Token       : SmallInt;
>             Parameter   : SmallInt;
>             Comment     : TCommentType;
>             Xcoord      : single;
>             Ycoord      : single;
>             Zcoord      : single
>          end;
>
> If I use a RandomAccessFile (the only way one I know for reading datatypes
> directly) the data doesn't match. (probably some byte-swapping problem)
>
> In JBuilder3 I use a Short for the SmallInt and a Float for the Single.
>
> How can I correct this problem ?
>
> kind regards,
> Hans Hinnekint
> hansh@vds-deinze.com
Technical Details
Message-ID: <37C67566.785BD1D2@iname.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7q5c79$q4810@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4346708a550a4d5f
X-Google-Attributes: gidf74b3,public
From: Kobus du Toit <battlezone@iname.com>
Subject: Re: Reading Files made with BP7
Date: 1999/08/27
Message-ID: <37C67566.785BD1D2@iname.com>
X-Deja-AN: 517754262
Content-Transfer-Encoding: 7bit
References: <7q5c79$q4810@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: battlezone@iname.com
Newsgroups: borland.public.jbuilder.java.language