0 Replies Latest reply: May 19, 2008 1:56 AM by 843844 RSS

    "\n" problem while downloading the file in unix environment

    843844
      Hi folks,

      I have some problem in uploading and downloading the file in unix environment..

      This is my sample code i am using.

      File userDataFile = new File("xyz".csv");
      out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(userDataFile),"UNICODE"));
      out.write("Name"+"\t");
      out.write("Age"+"\t");
      out.write("Dob"+"\t");
      out.write("Contact"+"\n");
      for(int i=0;i<retList.size;i++){
      out.write("xyz"+"\t");
      out.write("22"+"\t");
      out.write("300399"+"\t");
      out.write("xyzzz"+"\n");
      }

      as per this i wrote code for generating the reports. Its contains some 7k records.
      Its works in Windows environment.
      Some times in Windows environment if the contents size is 7000 records means
      i got only the headers..
      I am not getting any real records.
      I am not sure.. my client is using may be an unix environment..

      Please give the solutions for this..

      Very thanks in advance.