MPL Documentation


LineEnding is a constant which contains the current line-ending character. This character is system dependent and is initialized by the operating system. This constant should be used instead of hardcoding OS characteristics. This is helpful when reading text files, displaying text to the console, and sometimes when communicating with different operating systems over the Internet. Linux and BSD this will return #10. Old Mac (Classic) will return #13. And DOS and Windows will return #13#10.

These features are included so you will code your application to work on multiple platforms without error.