using tail command in linux

C++
tail -f filename //For seeing Realtime change
tail -n 200 filename  // show last 200 lines of a file
Source

Also in C++: