file handling via post request in asp & c#
<p>I want to process a file coming from a post request.
The file looks like this:
first line: text1
second line: empty line
third line: text2
an example:</p>

<p>"
asdasdasd1</p>

<p>asdasdasd2
"</p>

<p>so far i processed the file like this:</p>

<p>byte[] data = Request.BinaryRead(Request.TotalBytes);</p>

<p>String processedfile = Encoding.UTF8.GetString(data);</p>

<p>But this was i lose the page breaks and the whole string becomes 1 line instead of 3.</p>

<p>How can i process the resquest where at the end i can keep the page breaks?</p>

<p>Thanks in advance!</p>

<p>Sincerely,</p>

<p>Zoli</p>
