Is there a way to get PCLStorage to open a file for writing and wipe all the current contents if the file already exists?
I have just found a slippery bug in my code whereby I was writing an XML file in which I had set a value to 'False', and then the file was being opened for R/W and the value was written as 'True', which resulted in the file having two '>' symbols at the end of the file. This appears to be because the string 'True' is one character shorter than the string 'False', so I am seeing the one character of the file's previous contents, if that makes sense.
I could just delete the file and re-create but that seems inefficient. I looked at the collision options, but there doesn't appear to be a way to use this with opening a file.
Any help would be very much appreciated.