Hello again!
I wrote this simple program in pascal on my Linux box:
==================================
program exists;
var
f: file of string;
IOR: integer;
begin
assign(f, 'test.txt');
{$I-}
reset(f);
{$I+}
IOR := IOResult;
if IOR = 2 then
writeln('exists')
else if IOR = 0 then
writeln('it does not exists')
else if IOR <> 0 then
halt;
close(f);
end.
==================================
# fpc exists.pas
It Works fine. Now I'm writting an app with lazarus, and the same code
(inside a procedure) does not work. An error message appears when compiling:
Unit1.pas(50,30) Error: Wrong number of parameters specified
Should I handle files with lazarus in a diferent way tan with fpc?
Regards,
German