1

What is the best way to display the contents of a text (.txt) as it updates? The log is updated by a C++ program that outputs log/error messages to it, and the file persists between (and is present before) runs.

Currently, I just keep it open in Nopepad++, which asks to update whenever it detects changes were made. But it requires window focus to do that, which makes debugging some situations difficult and tedius.

3
  • 1
    Under linux we have the tail -f purposed for such. I don't know if there's a windows system tool equivalent. At least MinGW MSys supports this command. Commented Nov 25, 2014 at 18:34
  • 2
  • 1
    I ended up following πάντα ῥεῖ's link, and downloaded the unix tail command. It's better than expected! I can stuff tail.exe -f -n20 filename.txt into the build script and it automatically comes up when I begin debugging
    – Anne Quinn
    Commented Nov 25, 2014 at 19:35

1 Answer 1

-1

The Document Monitor Plugin does not require focus.

It can be installed via the plugin manager (just search for "Document Monitor").

After installed choose Plugins->Document Monitor->Start to Monitor, to update all documents every 3 seconds.

Source:http://www.addictivetips.com/windows-tips/auto-refresh-all-opened-notepad-documents-to-view-changes-document-monitor/

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.