If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

why text file store in unix operating system can't be read

I have promblem .Currently i using both jsp and io class in to store value in a text file and mysql database .The promblem is that I can view in window platform the content of the text file ,but not in UNIX platform . Below are the syntax
<%
//String save2 = request.getParameter("flag");
String fileName = request.getParameter("fileName"); //get file name from download_process.jsp
String usr = request.getParameter("usr");
String passwd = request.getParameter("passwd");
System.out.println("f " +fileName);

System.out.println("stea " +stream1);
while ((Read1 = stream1.read()) != -1){
out.write(Read1);
}//end while
out.flush();
}//end try
finally {
if (stream1 == null){
stream1.close();
}//end if
}//end finally
%><%@ page import="java.io.*,javax.servlet.*,java.util.*, java.util.Date, java.util.Calendar, java.text.SimpleDateFormat "%>
the file is currently stored in window operating system and upload into unix operating system . And display line is to long and all the values are replaced with @ . Don't understand why.Please help me

Advertiser Disclosure:
Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.