if you can give me an example?

thank you,if you can give me an example of regression test¡H
i want to write an example which verify a string(such as "abc") in a file.

best wishes

changcheng