Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect output to a file

 
Aru Ven
Ranch Hand
Posts: 199
  • 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: 3776
10
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx Anil, that helped....
Aruna
 
Rob Whelan
Ranch Hand
Posts: 33
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic