title: How to nextLine in a FileWriter and BufferedWriter, in java?
body: <p>I've been trying to work with some files but It never goes to the next Line.
  With "\r\n" or by using bufferedWriter, at first I only used fileWriter.</p>
  
  <p>How do I make a nextLine() ? These files will be used on Unix, I heard it is not the same character recognized for going to the next line.</p>
  
  <p>Here is What my program looks like : </p>
  
  <pre><code>try {
  
      File tempFile = new File(pathFiles + "tmp.txt");
      //System.out.println(tempFile);     //TEST
      FileWriter fw = new FileWriter(tempFile, true);
      BufferedWriter bw = new BufferedWriter(fw);
      Reader fr = new FileReader(fileOriginal);
      BufferedReader br = new BufferedReader(fr);
  
      String line = "";
      while ((line = br.readLine()) != null) {
  
          for (int i = 0; i &lt; arrayToConvert.size(); i++) {
              line = line.replace(arrayToConvert.get(i),
                      arrayConverted.get(i));
          }
          //line += "\r\n";   
          //line += "\u240D";
          //System.getProperty("line.separator");
          //br.readLine().split("[\\r\\n]+");
          //br.write(line);
          bw.write(line);
          bw.newLine();
  
  
          //br.readLine().split("[\\r\\n]+");
          //line.split("[\\r\\n]+");
      }
  
      bw.close();
      fw.close();
      br.close();
      fr.close();
  </code></pre>
  
  <p>This is the section you need. In comment, what I already tried.</p>
  
  <p>Thanks for the help.</p>