diff --git a/mozilla/cck/ib/ib.cpp b/mozilla/cck/ib/ib.cpp index cb0aee79ad5..e7f94d3bf99 100644 --- a/mozilla/cck/ib/ib.cpp +++ b/mozilla/cck/ib/ib.cpp @@ -4,6 +4,7 @@ #include "globals.h" #include "comp.h" #include "ib.h" +#include "fstream.h" #include #include #include "resource.h" @@ -146,6 +147,44 @@ void ModifyPref(char *buffer, CString entity, CString newvalue) strcpy(buffer, (char *)(LPCTSTR) buf); } +int ModifyProperties(CString xpifile, CString entity, CString newvalue) +{ + + int rv = TRUE; + CString propFile = xpifile; + CString tempFile = xpifile + ".temp"; + char properties[400]; + + ofstream tf(tempFile); + if(!tf) + { + rv = FALSE; + cout <<"Cannot open: "<