Fórum Arquivo TXT! URGENTE! Quantas Linhas? #149231
24/03/2003
0
Zacca
Curtir tópico
+ 0Posts
24/03/2003
Anonymous
tipo c tem q procurar por um EOF é um caracter especial
end of file
num lembro como
Gostei + 0
24/03/2003
Zacca
desculpe gostaria de saber exatamente quantas linhas tem o arquivo...
Gostei + 0
24/03/2003
Zacca
desculpe gostaria de saber exatamente quantas linhas tem o arquivo...[/quote:847bc77bf7]
PRECISO SABER TB COMO FAÇO PARA LER LINHA A LINHA NO ARQUIVO TXT....
Gostei + 0
24/03/2003
Okama
begin
OpenDialog1.Execute;
AssignFile(Arquivo,Opendialog1.Filename);
Reset(Arquivo);
I:= 0;
While not Eof(Arquivo) do begin
ReadLn(Arquivo,Linha);
Showmessage(´Linha do Arquivo: ´+Linha);
inc(I);
end;
CloseFile(Arquivo);
Showmessage( ´Quantidade de linhas: ´+inttoStr(I));
end;
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)