apprunner/src/main/java/org/jbundle/util/apprunner/AppUtilities.java
public static Properties readProperties(String strFileName)
	{
		Properties properties = new Properties();
		File fileProperties = new File(strFileName);
		try	{
			if (!fileProperties.exists())
				fileProperties.createNewFile();
			InputStream inStream = new FileInputStream(fileProperties);
			properties.load(inStream);
			inStream.close();
		} catch (IOException ex)	{
			ex.printStackTrace();
		}
		return properties;
	}
public static Properties readProperties(String strFileName)
	{
		Properties properties = new Properties();
		File fileProperties = new File(strFileName);
		try	{
			if (!fileProperties.exists())
				fileProperties.createNewFile();
			InputStream inStream = new FileInputStream(fileProperties);
			properties.load(inStream);
			inStream.close();
		} catch (IOException ex)	{
			ex.printStackTrace();
		}
		return properties;
	}
public static Properties readProperties ( String strFileName ) { Properties properties = new Properties ( ) ; File fileProperties = new File ( strFileName ) ; try { if ( ! fileProperties . exists ( ) ) fileProperties . createNewFile ( ) ; InputStream inStream = new FileInputStream ( fileProperties ) ; properties . load ( inStream ) ; inStream . close ( ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } return properties ; }
/*
Open and read the properties file.
@param strFileName The name of the properties file.
@return The properties.
/ * Open and read the properties file .