I do not know C file handling, so forgive me if I make a mistake.. but I see quite a few in your 'Delete' block I think you should take a look at:
Code:
while (index < lenght && item != data[index])
Score++;
You misspelt 'length' here. I'm assuming thats what you want? I don't see any place where you have defined 'length' anyways. On another note: This looks like an infinite loop to me. 'index' is never modified.
Code:
if (index < length)
{
Once again, I don't think 'length' has been defined yet.
Code:
data[index] = data [lenghth-1];
Yet another misspelling of 'length'.
And another.
I don't know if the above is all 100% correct, but I do believe that your misspellings of 'length' are some of your problem. =P