QML does not have built-in I / O. But judging by the tone of your post, you already knew that.
How to read FILE content in QML?
You can extend the functionality of QML with C ++.
The QML getting started guide from the Qt reference documentation shows how to create a text editor. This includes file input / output using C ++.
Why is there no file input / output?
Since QML is based on JavaScript, JavaScript also does not have built-in I / O.
QML is designed as an easy way to create a user interface. You need a real program to do the rest.
Dennis
source share