Typed file functions ?

Tue, 12 Aug 1997 10:22:00 +0200


Dear Sirs,

I'm writing a program that needs to work with a file with a predefined
record structure like this below:

type
 tf1 = record
  preco       : integer;
  idade       : integer;
  titulo      : string[90];
  tema        : string[48];
  end;

I'm defining the record variable this way:

 r1 : tf1

and the file variable like this:

 f1 : file of tf1;

Is this correct ??? I want to assign, reset, read and seek the file to
read records in a sequencial way or just read one in position "x".I have
downloaded the Peter's G. system.pas unit that have the bin* functions,
but I don't know how to use them. Do you have any other functions to
work with this type of files ???

Please help me with this problem. My boss is geting very bored with me
!!!

Best regards

Joao Domingos



JoÒo Miguel Domingos (castor@supra.pt)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es