Помогите написать прогу:
Дан символьный файл(тип CHAR). Определить, входит ли в файл сочетание "abcdefgh".
program forum;
var
i:integer;
f:file of char;
s:char;
ss:string;
begin
ss:='abcdefgh';
assign(f,'c:\temp\1.chr');
reset(f);
i:=1;
while not eof(f) do
begin
read(f,s);
if s=ss[i] then inc(i)
else i:=1;
if i=9 then break;
end;
if i=9 then write('vhodit')
else write('nevhodit');
readln;
end.
if i=9 then break;
if i=length(ss) then break;
if i > length(ss) then break;
все-таки...