I check if the file exists
if(FileExists(FileName))
And if it does not exist I open it like this:
OutputF.open(FileName, ios:ut);
And all is fine, however if it does exist I open it like this:
OutputF.open(FileName, ios::app);
However in this case it wont open and returns OutputF.fail() as true?..... I can open the file to write over with the ios:ut but if I try to open for append it wont open it, I have also tried ios::ate and the problem occurs, it has no problem with ios:ut and ios::in though......
Any help is muchly appriciated
if(FileExists(FileName))
And if it does not exist I open it like this:
OutputF.open(FileName, ios:ut);
And all is fine, however if it does exist I open it like this:
OutputF.open(FileName, ios::app);
However in this case it wont open and returns OutputF.fail() as true?..... I can open the file to write over with the ios:ut but if I try to open for append it wont open it, I have also tried ios::ate and the problem occurs, it has no problem with ios:ut and ios::in though......
Any help is muchly appriciated