pascalabcnet/_Presentations/2015 New Features/Programs/14_FilesStr2.pas

10 lines
180 B
ObjectPascal
Raw Permalink Normal View History

2015-05-14 22:35:07 +03:00
begin
var f := OpenRead('freqs.txt');
while not f.Eof do
begin
var ss := f.ReadlnString.ToWords;
if ss[3] = 'verb' then
writeln(ss[2]);
end;
f.Close;
end.