File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect output to a file

 
Aru Ven
Ranch Hand
Posts: 199
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Can anyone tell me how to redirect the output of the program to a text file...
Thx,
ARuna
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3674
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java YourProgram > output.txt
HTH,
Paul.

------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus
 
Aru Ven
Ranch Hand
Posts: 199
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Anil, that helped....
Aruna
 
Rob Whelan
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want a system independant method, do it from within your program:
From within your main method:

[This message has been edited by Rob Whelan (edited October 20, 2000).]
[This message has been edited by Rob Whelan (edited October 20, 2000).]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic