I have tried that but still the same problem.
I found out that when I have loaded the file:
Editor1.LoadHtml("brugere/1/default.htm");
The file is locked until I have made changes to the code and compiled it again, when I have done that the changes I have made in CuteEditor before I compiled is saved to the file.
Editor1.SaveFile("brugere/1/default.htm");
//Peter