Borrar filtros
Borrar filtros

Issue using Delete to remove .txt file

9 visualizaciones (últimos 30 días)
Jaime De La Mota Sanchis
Jaime De La Mota Sanchis el 29 de En. de 2020
Comentada: Walter Roberson el 25 de Abr. de 2022
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:
delete 'WeightData.txt'
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
delete '*.txt'
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.
  4 comentarios
Yifan Xu
Yifan Xu el 25 de Abr. de 2022
i have the same issue
Walter Roberson
Walter Roberson el 25 de Abr. de 2022
delete('WeightData.txt')

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by