Reem_Abdullah
Newbie level 4
I want to search for specific word in text file and return its position ...
this code read the text fine...
but when I add this code
it return [] although the string 'Term' exist in the file
can you please help me
this code read the text fine...
Code:
fid = fopen('jojo-1 .txt','r');
while 1
tline = fgetl(fid);
if ~ischar(tline)
break
end
end
but when I add this code
Code:
U = strfind(tline, 'Term');
it return [] although the string 'Term' exist in the file
can you please help me