Create a parrallel loop on your diagram that runs until the main loop is done (a local copy of the stop button for this).
Drop a case into it that is controled by a Boolean on your front panel.
Make sure the main loop updates a global (LV2) that holds the pathe the .txt file being written.
In true case driven by your button, read path from global and use it to build a string that you pass to the SysExec.vi.
Do not know sysntax to open notepad but it should be easy enough to figure out.
Also, make sure the file is opened as "shared" by the writer.
This should get you close.
Ben