While generating Text files dynamically how can we add "Page Break"

All,

While generating text files dynamically how can we add "next page" character as we do the next Line (/r/n) ?

Any clue please let me know the Syntax..

My file is as follows --

static BufferedWriter output;

output = new BufferedWriter(new FileWriter(newpath + File.separator + "TOL.txt"));

output.write(" writing all my strings here...... ");

output.newLine();

output.write("some more string here ... ");

output.newLine();

? need Page Break character ?/

Now i need the Page Break here before I write more

text to this file...

.....more text here...

output.flush();

output.close();

-

Thanx

[721 byte] By [ssshalini] at [2007-9-26 4:47:26]
# 1
If anyone looking for inserting Page Breaks in the file Use Unicode char '\u000c'Example --output = new BufferedWriter(new FileWriter(newpath + File.separator + "TOL.txt"));char c = '\u000c';output.write(c);It works :)
ssshalini at 2007-6-29 18:37:09 > top of Java-index,Archived Forums,Socket Programming...
# 2
doesn't seem to work for me.
moleculess at 2007-6-29 18:37:09 > top of Java-index,Archived Forums,Socket Programming...
# 3
It works if you print the file from Wordpad but not from notepad
Lisa_R at 2007-6-29 18:37:09 > top of Java-index,Archived Forums,Socket Programming...
# 4
> doesn't seem to work for me.Must be a problem how you've chosen to print it then.To almost any "text" printer on the planet, "\u000C"is ASCII code 12 - FF (Form Feed).
rkconner at 2007-6-29 18:37:09 > top of Java-index,Archived Forums,Socket Programming...