public final class SetProfileString implements Function {
public static String call(PageContext pc , String fileName, String section, String key, String value) throws PageException {
try {
Resource res = ResourceUtil.toResourceNotExisting(pc,fileName);
IniFile ini = new IniFile(res);
ini.setKeyValue(section, key,value);
ini.save();
}
catch (IOException e) {
throw Caster.toPageException(e);
}
return "";