Exite como saber o tamanho da linha de um arquivo texto?

Delphi

11/07/2003

Preciso de uma rotina que leia (percorra) meu arquivo texto e me retorne o tamanho da maior linha.

Existe esta possibilidade?

Sem mais...


Wgm8

Wgm8

Curtidas 0

Respostas

Lucilton

Lucilton

11/07/2003

AssignFile ( arq, nomeDoArquivo );
Reset ( arq );

tamanhomaior=0;


while not Eof ( arq ) do
begin
ReadLn ( arq, linha );

if tamanhomaior<lenght(linha) then
tamanho=length(linha);

end;

CloseFile ( arq );


GOSTEI 0
POSTAR