JUDSON ROSA Posted April 6, 2021 Report Share Posted April 6, 2021 Boa noite , como faço para GRAVAR as alterar nas linha de um txt usando o TTxtfile() ?? // Ler Arquivo cFile := cArqTxt oFile := TTxtFile():New( cFile ) // linhas Do while ! oFile:lEof() cLinha := oFile:ReadLine() If ( empty( alltrim( cLinha ) ) ) Exit Endif ****************>>> AQUI ALTERA A INFORMAÇÃO DE cLinha E QUERO GRAVAR COM ESSA ALTERAÇÃO ********* // Próxima Linha oFile:Skip() Enddo oFile:Close() Quote Link to comment Share on other sites More sharing options...
macs Posted April 6, 2021 Report Share Posted April 6, 2021 Não sei se funciona: oFile:RepLine( cLinha ) Quote Link to comment Share on other sites More sharing options...
JUDSON ROSA Posted April 7, 2021 Author Report Share Posted April 7, 2021 valeu pela dica Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.