2016-06-13

Java command line arguments importing from a file

Similar Question:


  •        Exporting java output to a different file
  •       How to write console output to a file


Solution:

Syntex: 
 
Exporting
  
% java ClassName agrs > filename.txt

  % java myclass 10 10 30 > data.txt

Importing 

          % java class name  < filename.txt
    
          % java Myclass <  data.txt




No comments:

Post a Comment