org.framework.utils.PropertyFileReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebAppFramework Show documentation
Show all versions of WebAppFramework Show documentation
Jar to include in your custom framework which contains excel utilities, main controller, call application, random generation and utilities for selenium operations
package org.framework.utils;
import java.io.FileReader;
import java.util.Properties;
public class PropertyFileReader {
public String propertiesReader(String filePath,String key)
{
try
{
FileReader reader = new FileReader(filePath);
Properties properties = new Properties();
properties.load(reader);
String s = properties.getProperty(key);
return s;
}
catch(Exception e)
{
e.printStackTrace();
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy