Ciao a tutti!
Sto cercando di usare la readFile ma mi dà il seguente errore in compilazione : "Types of actual and formal var parameters must be identical"....

Ecco il mio codice :

var src: Integer;
n, bytes, bytestocopy: Integer;
last_part: array [0..4] of Integer;

if (not ReadFile(src, last_part, sizeof(last_part), n, nil)) then
raise EInOutError.Create('Source file too short.');


Dove sbaglio?

Grazie mille!


Ciaoooo!