Properties prop=new Properties();prop.setProperties("key",":");
OutputStream os=new FileOutputStream("prop.properties");
prop.store(os, "更新于:");
os.close();执行后key=\:而不是
key=:
OutputStream os=new FileOutputStream("prop.properties");
prop.store(os, "更新于:");
os.close();执行后key=\:而不是
key=:
try
{
Properties prop=new Properties();
prop.setProperties("key",":");
OutputStream os=new FileOutputStream("prop.properties");
prop.store(os, "更新于:");
os.close(); }
catch (FileNotFoundException ex)
{
//handle Exception
}
catch (IOException ex)
{
//handle Exception
}