After reading this question I noticed - despite the initial question - the solution provided works only for remote files unless you have a webserver.
Instead I'm looking for a solution (that doesn't use Node.js) to "tail -f" a local file (on the same machine where the script runs) in order to read its changes. The script runs in a QML item, so no browsers nor webservers are involved.
The file might be updated quite quickly: i.e. several times per second, but with few chars at time only.
I'm able to read the file's content using an XMLHttpRequest
but it seems it doesn't fit for my purpose.
UPDATE
After the downvote and the closing request I try to explain in other words.
I'm working on a commercial device that offers a loader for QML objects only. I cannot write C++ applications, there's no compilers, etc...
Into /tmp
folder there's a file that is continuously updated by a bash script. In my QML object I need to parse each line as soon as it is appended. The Qt version is 4.x and QtQuick is 1.1.
So I'm asking a way to achieve this goal with these constraints.