TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Brad Boyd
from: Peter Lavender
date: 1996-08-03 00:17:32
subject: encryption

Hi Brad,

And thus Brad let it be known to Peter:

  BB> How would I save it as a bindary file?

Declare it of type file.

here is an example of a record structure saved as a binary file:


*-=-=-=-=[ Begin: example.pas ]-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
program PartsAssignment;

type

  Item = record
    Vehicle: string [15];
    PartName: string [20];
    PartNumber: integer;
    Description: string [30];
    Price: real;
    Quantity: integer;
  end;

  ItemFile = file of Item;

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[ End: example.pas ]*

Hope that helps.. if you are still stuck read the manual on binary files.

Cya,

Pete

... An idea is not responsible for fools who believe in it.
--- TossingRealityX 1.02+
* Origin: Back from Reality. Files?? Pfff Yeah Sure! (3:635/309)
SEEN-BY: 633/267 270
@PATH: 635/309 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.