How to get the contents and the line number inside of the text file?

@Swaroop_Singh_R

It prints out the whole path, I just need to get and print the FileName like this “filter_message.cfg” but do not declare it as literal string.

Thanks,
France