This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

help page break  RSS feed

 
Per Lovdinger
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page break
==========
I want to create a file in such a way that it includes the proper escape-codes
for newLine and pageBreak.
For newLine I know that the escape code is '\r' and '\n'.
How can I do the same for pageBreak ?
Is there a escape code for page break ?
I want to write a file to disk and when I print the file I want the proper page breaks
to take effect.
thanks in advance
Per
 
Ganesh Ram
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you are writing a file, using BufferedWriter, you could use newLine() to write a new line. This is much better than hard coding .
 
Per Lovdinger
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
But how do I do a page break ?
..Per
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!