Quote Originally Posted by Chien
Quote Originally Posted by Colin
and you can not use high on a byte array that would be dynamic.
I usually use following code to do something, it works ok:

[pascal]
procedure dynamicArray(inputParam : array of integer);
Var
i : integer;
begin
for i := 0 to High(inputParam) do
....
end;
[/pascal]

Althrough it is dynamic, but the machine can tell you how long it is!

the var is not dynamic, you have by this time already set the length of the array, however, if trying to get the size of the file, without knowing the size of the file, you can not set the length of the array, therfore you would be calling high on an empty array, this is impossible. you need to re-read the previous posts.

-Colin