MATLAB - File I/O
Identify the error in this MATLAB code snippet for reading a file:
fileID = fopen('data.txt', 'r');
data = fread(fileID);
fclose(fileID);
disp(data);