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();
}

