Low Level IO: Closing files Without Using fclose('all')

I am not sure why it still says my files are open when I type fopen all in the command window.
I attached my code. I made sure to close all three 3 files after the line in question is read and I made sure to close the newly created file.
Was wondering if anyone could help. I attached my code.

 Réponse acceptée

Mark Tenorio
Mark Tenorio le 5 Mar 2018

0 votes

Nevermind. I found out the problem. I moved the original fopen(file1) and fopen(file2) to within the if statements.
I still don't know why this solved the problem...they shoulld still be all closed anyway in my attached code.

Plus de réponses (0)

Catégories

En savoir plus sur Manage Products dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by