Is it possible to search a file for a string and return that string's position in the file?

Also, is it possible to read from X position to Z position in a file?

Thanks for your help!!!