• Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing output of console to a file using system.out.println  RSS feed

 
Harish Kumar Marati
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can anybody explain me how to write the content of the console to a file using System.out.println().
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code will create a file called "test.txt" and write all System.out.println calls to that file.


[ December 05, 2006: Message edited by: Prabhu venkatachalam ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!