Guys, explain why I do not write a new line?

FileWriter statW = new FileWriter("statistics.md"); statW.write(name+"\n"+years+" лет"); statW.close(); 
  • Print \ n at the beginning, then write a new line. - freim
  • As a result, I have: Artem19 years old - Fussion Bart
  • one
    What is the received file in? - zRrr
  • one
    In the standard windows textbook - Fussion Bart
  • @FussionBart for help - wikis on the topic - zRrr

1 answer 1

in place \ n try \ r \ n. should help

  • one
    Thanks helped) - Fussion Bart