Here is the code I'm talking about (showed it in a new thread about two minuts ago... it's what I had trouple with you might gues )
This code works, but if you'll read the coment you'll get my question.
AnsiString TFileHandle::Load() const
char *Text = new char;
Text = '\0';
unsigned int Lenght;
Lenght = strlen(Text);
Temp = new char[Lenght + 2];
/* If I don't put the length of this array to "+ 2" I can't
delete it without an error on run-time. Sure it would work, but would allso have maid a memory leak. :(
Thereby I've maid an array that will always have an end without
anything in it.
Temp[Lenght] = Char;
Temp[Lenght + 1] = '\0';
delete  Text;
Text = Temp;