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?

