Saturday, April 30, 2011

Output at command prompt can be saved in a .txt file

Some times we need to save the output wat we got on command prompt in a file for further operation n all,
while doing my Project work , i was simply playing with command prompt and during that we need a way
to save the output in a .txt file, that is very simple which is explained 

first suppose u want to save the output of a hello.java file then type the following 
c:\user\vinish\folder1>javac hello.java
then type
 c:\user\vinish\folder1>java hello > out.txt
ur out put is saved in out.txt
 

No comments:

Post a Comment

Required details

--------------------------------------------------------------------------------------------------------------------------- C:\Program File...