soapClient/src/com/belkast/soap/propertyProcessor.java

26 lines
581 B
Java

package com.belkast.soap;
import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;
public class propertyProcessor
{
public static String getProperty(File MyFile, String varProperty) throws Exception
{
Properties props = new Properties();
String propertyValue = "";
try
{
props.load(new FileInputStream(MyFile));
propertyValue = props.getProperty(varProperty);
}
catch (Exception e)
{
e.printStackTrace();
}
return propertyValue;
}
}