All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.framework.utils.PropertyFileReader Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy