Java Properties output to console

Description

Java Properties output to console


import java.io.FileInputStream;
import java.util.Properties;

public class Main {
  public static void main(String args[]) throws Exception {
    Properties p = new Properties();
    p.load(new FileInputStream("test.txt"));
    p.list(System.out);/*from   w  w  w.jav  a  2s  .  c o m*/
  }
}



PreviousNext

Related