external data file fails to be assigned in ISO MODE.
Original Reporter info from Mantis: helbig
-
Reporter name: Wolfgang Helbig
Original Reporter info from Mantis: helbig
- Reporter name: Wolfgang Helbig
Description:
According to the fpc-wiki https://wiki.freepascal.org/File_Handling_In_Pascal files will be assigned to external files if
the external files appear on the command line.
This works for text files but fails for data files.
Steps to reproduce:
$ cat >isotest1.pas
program isotest1 (file1, file2);
var
file1: text;
file2: file of integer;
begin
reset(file1);
readln(file1);
rewrite(file2);
write(file2, 5);
end.
$ fpc -Miso isotest1.pas
$ cat >external.txt
a
$ isotest1 external.txt external.dat
$ wc external.dat
wc: external.dat: open: No such file or directory
This file should be created! Text files are created.
Mantis conversion info:
- Mantis ID: 37958
- OS: os x
- OS Build: 10.11
- Platform: imac
- Version: 3.2.0
- Monitored by: » helbig (Wolfgang Helbig)