\n won't work, not going to a new line

后端 未结 5 793
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 02:48

I\'m creating a small program that saves a int value into a text file, saves it, and loads it when you start the program again. Now, I need 3 more booleans to be stored in t

5条回答
  •  没有蜡笔的小新
    2021-01-14 03:48

    Try using %n instead of \n when using format. For details on this, please see the Formatter API and search this page for "line separator" and you'll see.

提交回复
热议问题