Hello,
I have a couple questions about the code sample at the bottom of this message:
1) is the following legal Pascal code? My gut feeling is that it isn't (my only other Pascal system -- albeit an interpreter, doesn't take it either), but I've never really played with typed files enough to know what to expect.
2) I take it GPC should do something more graceful than dump core (OS/2) or give a fatal signal (Linux), even if the source is invalid? :) This is with the 971001 beta.
program readdata(input, output, inputfile);
var inputfile : file of char; temp : array[1..10] of char;
begin reset(inputfile, 'test'); read(inputfile, temp); writeln(temp); close(inputfile); end.
-Kevin -- Kevin A. Foss --- kfoss@mint.net --