Handling newline character in input between Windows and Linux
<p>I think this is a standard problem which may have been asked before but I could not get the exact answer so posting the issue.</p>

<p>The issue is that our server is running on a linux box. We access the server over the browser on a window box to enter data into field which is supposed to contain multiple lines which user can enter by pressing the enter key after each line
Abc
Def
GHI</p>

<p>When this input field (this is a text area),is read on the linux machine, we want to split the data based on new line character. </p>

<p>I had three question on this.</p>

<ol>
<li><p>Does the incoming data contain "\r\n" or "\n"</p></li>
<li><p>If incoming data does contain "\r\n", the linux line.separator property (vm property) would not work for me as it would say "\n" and therefore may leave "\r" in the data. </p></li>
<li><p>If "\r" is left in the data, if I open the file on a windows machine, will this mean a newline character?</p></li>
</ol>

<p>Finally can anyone tell me the standard way to deal with this issue?</p>
