[fpc-devel]const sLineBreak

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Sep 15 09:25:44 CEST 2004


On Tue, 14 Sep 2004, Darek Mazur wrote:

> HI
>
> I need that WRITELN make the same end of line in Linux and Win32,
>
> I found sLineBreak, but for some OS it is var, for some const,
>
> There is second identifier LineEnding (mostly const)
>
> I think, tha one should be const, and second var, and when somebody need changes
> behavour of WRITELN  that he can do it.

The purpose of this constant is not to be able to set the lineending, it
gives the lineending which is the default on the current platform.

If you need to have the same lineending on all platforms, you must do
your writes yourself. I would suggest using TStreams then.


Michael.




More information about the fpc-devel mailing list