I use Matlab to create a new file, calling
fid = fopen(filename,'w')
since the file name does not exist, it should create a new file and give me a valid file descriptor. Instead, it returns -1. If I run the code again, I get fid = 3.
This runs on ubuntu, but it seems to work fine on windows, and I can't figure out why.
-Mike
source
share