function section = web_get_section(str,file) str_start=['']; str_stop= ['']; % Load existing html file txtfile = textread(file,'%s','delimiter','\n','whitespace',''); section{1}=''; FOUND=0; il=0; for n=1:length(txtfile) if strmatch(str_stop,txtfile{n}); FOUND=0; end if FOUND==1; il=il+1; section(il)=txtfile(n); end if strmatch(str_start,txtfile{n}); FOUND=1; end end