3rd point which activity to be used and how to compare it common folder

For Opening log file - you can use read text file.

For reading first line - we can do string manipulation may be split.

Hope this helps.