Save the output from system.out.println into a file
I am wondering if it is possible to save print outs from system.out.println into a file. I am using a third party code that outputs such prints, when I use it from command line I use: C:\\someCommand someOptions inputFile > outputFile
I don't want to mess about with the third party code, I just wonder whether I can implement something similar to ">" in the command line. In the Java code, I make an instance and call the run program of that instance with some parameters, so it just gives some printouts.