Of course, it is possible, although you need to change the println() by something else.
Or not even, if you define something like:
- static void println(String msg)
- {
- PApplet.println("This is an hijack! " + msg); // Of course, more significant code there!
- }
you can output to a file.