Hello everyone. I am currently trying to reomove a .txt file before saving data on it to avoid superposition. I am using Delete as defined in it's help page.
My code is as follows:
save('WeightData.txt', 'weight', '-ASCII','-append');
However, when I execute it I obtain the following "Warning: File not found or permission denied"
I have also tried to delete using the wildcard
However, the error remains the same and the values keep accumulating in the .txt file.
Can someone please advice me on what to do?
Thanks for reading.