Top "Eol" questions

EOL is short for "end of line". In text files each line is terminated with characters such as linefeed or carriage return or a combination thereof.

How do I get a platform-dependent new line character?

How do I get a platform-dependent newline in Java? I can’t use "\n" everywhere.

java cross-platform newline eol
When do I use the PHP constant "PHP_EOL"?

When is it a good idea to use PHP_EOL? I sometimes see this in code samples of PHP. Does …

php eol
Carriage Return\Line feed in Java

I have created a text file in Unix environment using Java code. For writing the text file I am using …

java carriage-return line-endings eol linefeed
What's the best CRLF (carriage return, line feed) handling strategy with Git?

I tried committing files with CRLF-ending lines, but it failed. I spent a whole work day on my Windows computer …

git cross-platform newline eol
EOL conversion in notepad ++

For some reason, when I open files from a unix server on my windows machine, they occasionally have Macintosh EOL …

notepad++ eol
How do I use System.getProperty("line.separator").toString()?

I have a Tab-delimited String (representing a table) that is passed to my method. When I print it to the …

java eol
Replace CRLF using powershell

Editor's note: Judging by later comments by the OP, the gist of this question is: How can you convert a …

powershell replace newline eol
Windows command to convert Unix line endings?

Is there a Windows command to convert line endings of a file? We have a test.bat which we need …

windows unix batch-file cmd eol
Choose newline character in Notepad++

I notice that when I load a text file, Notepad++ will recognize and use whatever the newline character in that …

notepad++ eol
Force LF eol in git repo and working copy

I have a git repository hosted on github. Many of the files were initially developed on Windows, and I wasn't …

git github eol