Top "Newline" questions

Newline refers to a character sequence representing a line break in text (also known as End of Line, EOL, or Line Break).

How to read a file into a string with CR/LF preserved?

If I asked the question "how to read a file into a string" the answer would be obvious. However -- …

c# string file newline carriage-return
How to find a process pid with wmic and kill it with taskkill

I need to find a process PID with WMIC command, and then kill this process with taskkill. I've almost achieved …

batch-file newline wmic
PHP fwrite() how to insert a new line after some specific line

I'm new here. Anyway, I did my research on fwrite(), but I couldn't find solution, so i'm asking for help. …

php newline fwrite strpos
CSS data attribute new line character & pseudo-element content value

Is it possible to have a new line in a data attribute ? I am trying to do something like this: …

html css newline pseudo-element css-content
Post newline/carriage return as hidden field value

I need to post multi-line data via a hidden field. The data will be viewed in a textarea after post. …

html post newline hidden-field carriage-return
Gracefully remove "\n" delimiter after last String within StringBuilder

Have following Java code,that creates StringBuilder with "\n",i.e. carriage return delimiters: while (scanner.hasNextLine()){ sb.append(scanner.…

java string newline stringbuilder
Remove line breaks in a FASTA file

I have a fasta file where the sequences are broken up with newlines. I'd like to remove the newlines. Here's …

unix awk newline bioinformatics fasta
How to to disable Git end-of-line (CRLF to LF) across all clones/machines?

As one can glean from other posts, Git's end-of-line normalization has its pros and cons. I have one particular Windows-only …

git newline gitattributes core.autocrlf
How to read lines from a text file one by one with Power Point VBA code?

This code will read a line from a text file: set file = CreateObject("Scripting.FileSystemObject").OpenTextFile("c:\number.txt", 1) text = …

file-io command-line newline fso
Git on Windows: What do the crlf settings mean?

I don't understand the complexities related to CrLf settings in git: core.autocrlf, core.safecrlf I'm developing a cross-platform project …

windows linux git newline core.autocrlf