[fpc-pascal] Strings greater than 255 characters

Peter B peter at pblackman.plus.com
Tue Dec 19 14:16:21 CET 2023


On 19/12/2023 11:36, James Richters via fpc-pascal wrote:
>
> I did notice that I cannot have a file of Ansistrings…
>
> Myfile : File of Ansistring;
>
> Causes a compiler error:
>
> Error: Typed files cannot contain reference-counted types.
>

I would just define the file as 'Text'.
Can then Readln into an Ansistring.


Cheers,
Peter


More information about the fpc-pascal mailing list