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




Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations