Read/Write from a jTextArea into a inputbuffer

I was wondering if you could read from a JtextArea into an inputbuffer.

my code currently writes to a file. I want to write to an input buffer and then later print it onto a console.

Here is my current code for writing to a file.

File _file = new File("my.txt");

try {

BufferedWriter out = new BufferedWriter(new FileWriter(_file));

_jTextArea.write(out);

out.flush();

out.close();

}

catch (IOException e1) {

e1.printStackTrace();

}

[514 byte] By [vjsa] at [2007-11-27 7:36:22]
# 1
Define inputbuffer
Hippolytea at 2007-7-12 19:16:53 > top of Java-index,Java Essentials,Java Programming...