Top "End-of-line" questions

The end of a physical line

Portable end of line

is there any way to automatically use correct EOL character depending on the OS used? I was thinking of something …

c++ portability eol end-of-line
Python readline with custom delimiter

novice here. I am trying to read lines from a file, however a single line in a .txt file has …

python readline end-of-line
Inserting endline into a stringstream

We know that when inserting \n in a file stream, the appropriate end-of-line sequence for the system will be written …

c++ newline stringstream end-of-line
String continuation across multiple lines, no newline characters

Am using the RODBC library to bring data into R. I have a long query that I want to pass …

r newline word-wrap rodbc end-of-line
Convert all EOL (dos->unix) of all files in a directory and sub-directories recursively without dos2unix

How do I convert all EOL (dos->unix) of all files in a directory and sub-directories recursively without dos2…

linux bash unix command-line end-of-line
End of line character / Carriage return

I'm reading a normal text file and write all the words as numbers to another text. When a line finishes …

c file text carriage-return end-of-line
How can I ignore the "end of line" or "new line" character when reading text files word by word?

Objective: I am reading a text file word by word, and am saving each word as an element in an …

c++ arrays getline end-of-line
Viewing \n and \r characters in Vim?

Is there a way to make \n or \r characters visible in vim? (I want to be able to see …

vim end-of-line
NSAttributedString '\n' ignored

I have a single view whose only UI element is a UITextView. In viewDidLoad: I create an attributed string with "…

ios ios6 uitextview nsattributedstring end-of-line
How to configure GNU Emacs to write UNIX or DOS formatted files by default?

I've had these functions in my .emacs.el file for years: (defun dos2unix () "Convert a DOS formatted text buffer …

emacs formatting text-files end-of-line