Tony Hak
28-08-2006, 08:21
ciao raga.. ho un problema :
ho un file binario (.dat) contenente un record del tipo :
tipor = record
nome,
cognome:string20; {stringa 20 caratteri max}
prodotto:tprodotto; {tprodotto è un vettore di 4 elementi interi}
end;
var
r:tipor;
preparo il file alla lettura :
while not eof (cli) do
begin
read (cli,r);
write (r.cognome);
end;
e mi da un errore 100 : disk read error ... dov'e' che sbaglio ?
grazie :mbe:
ho un file binario (.dat) contenente un record del tipo :
tipor = record
nome,
cognome:string20; {stringa 20 caratteri max}
prodotto:tprodotto; {tprodotto è un vettore di 4 elementi interi}
end;
var
r:tipor;
preparo il file alla lettura :
while not eof (cli) do
begin
read (cli,r);
write (r.cognome);
end;
e mi da un errore 100 : disk read error ... dov'e' che sbaglio ?
grazie :mbe: