i have to work with the text file

i have to check a text file that wether it contains a value.

if it contains a value then only i have to do some actions in my PC

like open a particular application and run that or create some text files etc...

Can u help me to do this