You can do whatever you need to do - it depends on the exact task you have in mind. When I've used ETNA, I've tended to need it for database (MySQL) operations on the called PHP page, so I'm not so experienced with manipulating text files so I can't guarantee that my line of thinking is the best, but I do know it would work:
- Blitz uses ETNA to call a PHP script which wipes the text file
- Blitz (ETNA) uses a FOR loop to send lines one at a time to a second PHP script which adds the lines to the text file
There may be better ways. If the text file is small, everything could be handled by a single script, with the contents of the whole text file sent at once.
There's no rocket science to any of this but a bit of (worthwhile) time and effort is required to learn this since it will be completely new to you.
- Blitz uses ETNA to call a PHP script which wipes the text file
- Blitz (ETNA) uses a FOR loop to send lines one at a time to a second PHP script which adds the lines to the text file
There may be better ways. If the text file is small, everything could be handled by a single script, with the contents of the whole text file sent at once.
There's no rocket science to any of this but a bit of (worthwhile) time and effort is required to learn this since it will be completely new to you.