base/common/src/main/com/thesett/common/util/PropertiesHelper.java
public static Properties getProperties(File file) throws IOException
    {
        /*log.fine("getProperties(File): called");*/

        // Open the file as an input stream
        InputStream is = new FileInputStream(file);

        // Create properties object loaded from the stream
        Properties properties = getProperties(is);

        // Close the file
        is.close();

        return properties;
    }
public static Properties getProperties(File file) throws IOException
    {
        /*log.fine("getProperties(File): called");*/

        // Open the file as an input stream
        InputStream is = new FileInputStream(file);

        // Create properties object loaded from the stream
        Properties properties = getProperties(is);

        // Close the file
        is.close();

        return properties;
    }
Get properties from a file.

@param  file The file.

@return The properties loaded from the file.

@throws IOException If there is an I/O error reading from the file.