simple question about handling newline in uploaded file

My web application is running on Tomcat, under Unix.

It has a funtionality that will ask the users to upload a text file, and the servlet will parse this uploaded file line by line, and do something.

When the users is using Windows, the uploaded file will contain the newline character of Windows, and the servlet has problem in reading line by line.

It works fine when the users are using Unix.

How can I solve this problem?

[457 byte] By [silviaa] at [2007-10-2 11:22:15]
# 1
What it the stream that you re using the read the file.I think that This should work ok when using BufferedReader
LRMKa at 2007-7-13 4:23:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...