I am creating a .dat file with headers and data in Matlab, however when I try opening it from the folder where it is saved then I get the error that says 'file in use by another application and cannot be accessed'. This error occurs even when Matlab is closed. I can only open it as a text by right clicking on the file through the Matlab's current directory window. Why is this happening and how to resolve it?
-
check out Unlocker: filehippo.com/download_unlockerAmro– Amro2010-09-02 00:43:06 +00:00Commented Sep 2, 2010 at 0:43
Add a comment
|
2 Answers
This is not supposed to happen, and, in fact, doesn't happen when I try your code on my machine (OS X, R2010a). In other words, I strongly doubt that there is any problem with the Matlab code.
Try restarting Windows, then the problem should go away for newly created, differently named files.
2 Comments
Amro
@Harpreet: In case its not MATLAB, you could use the tool I mentioned above (Unlocker), as it will tell you exactly which process has a locking handle on the .dat file, and allow you to release it. I use it all the time, its much easier than having to restart every time :)