How do you continuously print lines that are being appended to file.log

C++
Use the UNIX command "tail" with the -f option. 
That will continuously print out contents from the file to the terminal as it is added to the file. 
You can terminate the tail process by typing Ctrl + C
Source

Also in C++: