[fpc-pascal] Adding file to string to the RTL
Jean SUZINEAU
Jean.Suzineau at wanadoo.fr
Sat Oct 10 03:21:52 CEST 2020
Le 09/10/2020 à 10:15, Santiago A. via fpc-pascal a écrit :
> Just nitpicking.
> Shouldn't "try" be after the "reset" and after the "rewrite"?
> Why don't you allow to write an empty string?
Yes, you're right, the Reset/Rewrite should be after the try.
I admit this code is not general, just tailored to my own needs.
In my use-cases, writing a file of size 0 as placeholder is not useful.
More information about the fpc-pascal
mailing list