i'm creating a file in my program...im using the following code to overwrite the file each time the program is run.
I need to re-write the contents of the file each time a new response is received from the server...but i find the Write method doesn't overwrite the contents, it just appends to the existing contents...how to overwrite the contents with fresh data each time?Code:User::LeaveIfError(file.Replace(CCoeEnv::Static()->FsSession(), KTempFilePath, EFileWrite)); CleanupClosePushL(file); file.Write(KTempString);

Reply With Quote


