Exite como saber o tamanho da linha de um arquivo texto?
Preciso de uma rotina que leia (percorra) meu arquivo texto e me retorne o tamanho da maior linha.
Existe esta possibilidade?
Sem mais...
Existe esta possibilidade?
Sem mais...
Wgm8
Curtidas 0
Respostas
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 );
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