How to create a text file from a Plugin
I am writing a plug in to output details about each note in a score. I am using an existing plug in
that colours notes as my learning example.
Now I am stuck on how to open a file for writing. I included the following code, my plug in runs
with no apparent errors but no file is created.
// This code is at the beginning of the run() declaration:
var file = new QFile(pluginPath + "/test.txt");
var textStream = new QTextStream(file);
textStream.writeString("Script started " + "\n");
// I assume that all output is through this writeString method?
// at the end of the run method I close the file
what am I missing?
And where can I get documentation on the QFile and QTextStream methods?