What is the text file u would like to update ? Is it opened by QML ? Or is opened outside the context of your app ?What change you would like to make QML app ?
Where do you want to change & what ?
Better details about the question would help us to help you better.