-1

I have a text file which contains some data, with a number of blank lines which intersperse the data.

When opened in Ubuntu, I can see the blank lines, however on a windows machine all the data is displayed on the same line with no new lines at all.

What is the reason for this?

John
  • 303
  • 2
  • 12
  • CRLF vs LF - different newlines on different platforms. –  Mar 27 '17 at 17:18
  • 1
    Possible duplicate of [Difference between CR LF, LF and CR line break types?](http://stackoverflow.com/questions/1552749/difference-between-cr-lf-lf-and-cr-line-break-types) –  Mar 27 '17 at 17:21

1 Answers1

2

In a text file there are characters that you can't see in the text editor that indicate a new line. On Windows it is \n\r and on Linux it is \n.

Here is a good link that will explain this in a little more detail.