I want to overwrite certain characters within a file
for example if a file contained the characters "FT"
I want to search for the occurrence of "FT" and overwrite it with "HT"

Does anybody know of an API or function which will carry out this task

any help is greatly appreciated