Sorry i have forgot to attach my incomplete file.
/**************************
import java.io.*;
import java.util.*;
public class GenXML
{
public static void main(
String args[]) throws IOException
{
String path = "";
String export ="";
File xmlLoc= new File("Config.xml");
FileOutputStream xmlOs = null;
FileInputStream xmlIn = null;
Properties prop = new Properties() ;
try
{
if(!xmlLoc.exists())
{
xmlOs = new FileOutputStream(xmlLoc);
prop.put("Path","C:\\Export\\data.ini");
prop.put("Export","C:\\Export");
prop.storeToXML(xmlOs,"Config","UTF-8");
xmlOs.close();
}
//Load from XML
xmlIn = new FileInputStream(xmlLoc);
prop.loadFromXML(xmlIn);
path= prop.getProperty("Path");
export = prop.getProperty("Export");
xmlIn.close();
}
catch(Exception e)
{
System.out.println("\nAccess Client Config File \" clientConfig.xml \"Error , Please Check Access Right or Have enought space\n");
e.printStackTrace();
}
String location = path;
File inFile = new File(location);
FileInputStream in = null;
try
{
in= new FileInputStream(inFile);
}catch (IOException IOex)
{
IOex.printStackTrace();
System.out.println("Access File Error");
}
BufferedReader din = new BufferedReader(new InputStreamReader(in));
String temp = din.readLine();
String name = "";
....
....
....
....
}}
/************
I only do that ,please help me to see. Thank you for your help