Dear all: I have a problem where the location of file(device.properties) should be placed so that the data in the file can be read and used. The codes are attached as follows.
public void initialize(CIMOMHandle cimom) throws CIMException { this.cimomHandle = (ProviderCIMOMHandle)cimom; try{ FileInputStream fis = new FileInputStream("device.properties"); configprops.load(fis); //fis.close(); } catch (IOException e1) {} }
Log in to post a comment.
Dear all:
I have a problem where the location of file(device.properties) should be placed so that the data in the file can be read and used. The codes are attached as follows.
public void initialize(CIMOMHandle cimom)
throws CIMException {
this.cimomHandle = (ProviderCIMOMHandle)cimom;
try{
FileInputStream fis = new FileInputStream("device.properties");
configprops.load(fis);
//fis.close();
}
catch (IOException e1)
{}
}