Usefopen to open the file and then usefscanf orfgetl to read in the content. You can also usefread. For example, the following code reads the first line of the text.
fid = fopen(v,'r');
tline = fgetl(fid);
fclose(fid)
Just to remember close the file usingfclose afterwards.
Best Answer