On 17 Apr 2006, at 16:12, Daniel Franke wrote:
It's correct behaviour to crash if the file ('ipedfile.dat' in
this case)
does not exist?
Yes. Runtime error 2 means that the file does not exist.
I'm set. Thanks!
See also
http://www.freepascal.org/docs-html/rtl/system/ioresult.html
(in
On Monday 17 April 2006 16:18, Michael Van Canneyt wrote:
> On Mon, 17 Apr 2006, Daniel Franke wrote:
> > > > 6065: reset(ipedfile,'ipedfile.dat');
> > > > 6066: reset(datafile,'datafile.dat');
> > >
> > > Would become:
> > >
> > > Assign(ipedfile,'ipedfile.dat')
> > > Reset(ipedfile);
> >
> > Br
On Mon, 17 Apr 2006, Daniel Franke wrote:
>
> > > 6065: reset(ipedfile,'ipedfile.dat');
> > > 6066: reset(datafile,'datafile.dat');
> >
> > Would become:
> >
> > Assign(ipedfile,'ipedfile.dat')
> > Reset(ipedfile);
> >
> > Assign(datafile,'datafile.dat');
> > Reset(datafile);
>
> Micheal,
> ma
On Mon, 17 Apr 2006, Daniel Franke wrote:
>
>
> > > 6065: reset(ipedfile,'ipedfile.dat');
> > > 6066: reset(datafile,'datafile.dat');
> >
> > Would become:
> >
> > Assign(ipedfile,'ipedfile.dat')
> > Reset(ipedfile);
>
>
> Breakpoint 1, INITILINK () at ilink51.p:6065
> 6065 Assign(ipedfil
> > 6065: reset(ipedfile,'ipedfile.dat');
> > 6066: reset(datafile,'datafile.dat');
>
> Would become:
>
> Assign(ipedfile,'ipedfile.dat')
> Reset(ipedfile);
Breakpoint 1, INITILINK () at ilink51.p:6065
6065 Assign(ipedfile,'ipedfile.dat');
(gdb) next
6066 Reset(ipedfile);
(gdb)
Runt
> > 6065: reset(ipedfile,'ipedfile.dat');
> > 6066: reset(datafile,'datafile.dat');
>
> Would become:
>
> Assign(ipedfile,'ipedfile.dat')
> Reset(ipedfile);
>
> Assign(datafile,'datafile.dat');
> Reset(datafile);
Micheal,
many thanks for your fast reply!
Err, I assume this also holds for "rewr
On Mon, 17 Apr 2006, Daniel Franke wrote:
> Hi all.
>
> I'm a pascal noob who was given the task to compile a couple of ancient pascal
> files, originally written for "Sun Pascal pc compiler".
>
> Since I don't know anything about pascal, fpc's error messages gave me sort of
> a headache. Nevert
Hi all.
I'm a pascal noob who was given the task to compile a couple of ancient pascal
files, originally written for "Sun Pascal pc compiler".
Since I don't know anything about pascal, fpc's error messages gave me sort of
a headache. Nevertheless, I'm almost there - but not quite. i still get