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.
tail -f
purposed for such. I don't know if there's a windows system tool equivalent. At least MinGW MSys supports this command.tail.exe -f -n20 filename.txt
into the build script and it automatically comes up when I begin debugging