View Issue Details
This is fixed in 3.2.0.
I do not think your code is ISO compliant and contains errors. I miss input and output parameters for one...
Nice to know, that this bug is fixed in 3.2.0.
Thaddy de Koning, you are right, the example program is not ISO compliant. It should list the output parameter, because later I used it when calling the writeln procedure. The program header should read:
With this fix the program is ISO compliant, isn't it?
In normal FPC "text" files are writeonly. (only typed and untyped files are read/write)
What does ISO say about that R/W status of "text" files?
Textfiles are both readable and writeable, like any other file. All external files have to be listed as parameters in the program header and declared as variables, with the two exceptions "input" and "output". If they occur in the parameter list, they are implicitly declared as textfiles. When the input file is used for the first time, it is automatically opened for reading and when output is used for the first time, it is opened for writing. By the way, this works fine with FPC.
||I think I misread your example, doing put and get after a rewrite. I read over the reset() inbetween.|
||The procedures get and put and the function eof refer to the internal text file f and writeln refers to the external file output.|
||I am not sure, if the approach I have chosen is correct. If it does not work as expected, please provide more tests.|
|2019-02-22 14:48||helbig1||New Issue|
|2019-02-22 18:02||Thaddy de Koning||Note Added: 0114348|
|2019-02-22 18:10||Thaddy de Koning||Note Edited: 0114348||View Revisions|
|2019-02-22 18:11||Thaddy de Koning||Note Edited: 0114348||View Revisions|
|2019-02-23 20:56||helbig1||Note Added: 0114375|
|2019-02-24 15:30||Marco van de Voort||Note Added: 0114384|
|2019-02-25 13:56||helbig1||Note Added: 0114404|
|2019-02-25 14:28||Marco van de Voort||Note Added: 0114409|
|2019-02-25 15:02||helbig||Note Added: 0114410|
|2019-03-01 15:06||helbig1||Note Edited: 0114404||View Revisions|
|2019-12-28 11:36||Florian||Assigned To||=> Florian|
|2019-12-28 11:36||Florian||Status||new => resolved|
|2019-12-28 11:36||Florian||Resolution||open => fixed|
|2019-12-28 11:36||Florian||Fixed in Version||=> 3.3.1|
|2019-12-28 11:36||Florian||Fixed in Revision||=> 43801|
|2019-12-28 11:36||Florian||FPCTarget||=> -|
|2019-12-28 11:36||Florian||Note Added: 0120099|