Hi, I need to save the contents of a TMemo to a text file with CRLF line endings.
By default, the TStrings.TextLineBreakStyle is platform dependent, as mentioned in http://www.freepascal.org/docs-html/rtl/classes/tstrings.textlinebreakstyle.html: On FormCreate, I'm setting myMemo.Lines.TextLineBreakStyle := tlbsCRLF, also my program adds lines to the TMemo using myMemo.Lines.Add(text). But, when I do myMemo.Lines.SaveToFile(...) the result is an LF (unix) text file. Does anyone what I'm doing wrong?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus