String lName = "sss";
String lValue = (String) lProp.getProperty(lName);
gSysVariables.put(lName, lValue+",ddd");

解决方案 »

  1.   

    something like:
    // create and load properties
    Properties applicationProps = new Properties();
    FileInputStream in = new FileInputStream("www.txt");
    applicationProps.load(in);
    in.close();
    String lName = "sss";
    String lValue = (String) applicationProps.getProperty(lName);
    applicationProps.put(lName, lValue+",ddd");
    FileOutputStream out = new FileOutputStream("www.txt");
    applicationProps.store(out, "---No Comment---");
    out.close();