MATLAB: Fopen fails to open the file

file not foundfopen

Hi there,
small example file (test.m):
if true
clear all; clc;
disp(fopen('C:/test/test.csv'));
disp(fopen('test.csv'));
end
my current directory is also C:/test/ and the file (test.csv) exits as well.
but still both lines of code return the value -1 which indicates that the file couldn't be found and I don't know why.
Any hint?

Best Answer

Is test.csv opened in another application?