I was searching a way to get System.out.println texts and save them on a .txt file, for example:
System.out.println
System.out.println(\"Java vendor: \" + Syst
You are using standard System output stream which writes to console.You need to use PrintStream class,create a file and write to it.Example is below :
How to write console output to a txt file