Hello everybody,
I've a really simple procedure below, but for whatever reason I get run time error 3162112. When changing the name of 'fShareFile' to 'fFile' the program keeps failing on line containing 'writeln()', but with a different runtime error, so I guess the run time error is a memory location.
I used the construction mentioned below many times before and it simply works. No clue at all why it is not working anymore. In my original code - part of a bigger program - I got run time error 624 before on this construction, but can't find that error code anywhere too. Can somebody support here, thanks?
procedure test();
var
fShareFile: text;
sShareFile: ansistring;
begin
sShareFile:= 'e:\test.txt'; { this empty file is present on my disk }
assign(fShareFile,sShareFile);
reset(fShareFile);
writeln(fShareFile,'test');
close(fShareFile);
end;