title: How to write new lines (enter) in a text file on Android?
body: <p>I'm trying to add a new line (what we do with Enter key on PC) in a text file in Android.</p>
  
  <p>This is my code:</p>
  
  <pre><code>try {
      File tarjeta = Environment.getExternalStorageDirectory();
      File archivo = new File(tarjeta.getAbsolutePath()+"/.Info/", "values.txt");
      OutputStreamWriter escritor = new OutputStreamWriter(new FileOutputStream(archivo), "UTF-8");
      escritor.write("Pencil" + "\n" + "Book");
      escritor.flush();
      escritor.close();
      Toast.makeText(this, "Guardado satisfactoriamente!", Toast.LENGTH_SHORT).show();
  } catch(IOException ioe) {
  
  }
  </code></pre>
  
  <p>So everything is ok, BUT when I take this ".txt" file to a Windows OS and open it, I get this result:</p>
  
  <pre><code>PencilBook
  </code></pre>
  
  <p>While I want this result:</p>
  
  <pre><code>Pencil
  Book
  </code></pre>