I need a java prog for the below req

Write a java program that reads a .dat file and searches for a particular hard coded value (say NM*45).
If it is found it should print the entire line.

If it is found 100 times,all the hundred lines should get printed
help guys