FileDocCategorySizeDatePackage
PropertiesTest.javaAPI DocExample591Tue Dec 12 18:57:44 GMT 2000None

PropertiesTest

public class PropertiesTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        // set up new properties object
	// from file "myProperties.txt"
        FileInputStream propFile = new FileInputStream(
                                           "myProperties.txt");
        Properties p = new Properties(System.getProperties());
        p.load(propFile);

        // set the system properties
        System.setProperties(p);
	// display new properties
        System.getProperties().list(System.out);