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.

Anne Quinn
  • 10,856
  • 7
  • 40
  • 83
  • 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. – πάντα ῥεῖ Nov 25 '14 at 18:34
  • 2
    Also see [Looking for a windows equivalent of the unix tail command](http://stackoverflow.com/questions/187587/looking-for-a-windows-equivalent-of-the-unix-tail-command) – πάντα ῥεῖ Nov 25 '14 at 18:37
  • 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 Nov 25 '14 at 19:35

1 Answers1

-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/

coolsonh
  • 1
  • 1