I have this code in one of my apps and it generates a 103 (file not open) on the seek line
Filename := Concat(Datadir,GSDef.StatSets.Name,'.s30');
If FileExists(Filename) then
begin
AssignFile(FileS30, Filename);
Reset(FileS30);
For k := 1 to FileSize(FileS30)-1 do
begin
Seek(FileS30, k);
Surely by the time it gets there, the file has to be open?
Filename := Concat(Datadir,GSDef.StatSets.Name,'.s30');
If FileExists(Filename) then
begin
AssignFile(FileS30, Filename);
Reset(FileS30);
For k := 1 to FileSize(FileS30)-1 do
begin
Seek(FileS30, k);
Surely by the time it gets there, the file has to be open?