Does Windows carriage return \r\n consist of two characters or one character?
These are two characters: \r is carriage return; \n is line feed. Two characters combined represent a new line on Windows. Whereas on Linux, \n represents new line. It moves cursor to the start of new line on Linux. On Windows, the cursor will stay at the same column in the console but on the … Read more