No, that won't do if it's in a procedure.Then just do a search for all "WriteStringN(0," in each app as required,
and check to make sure they're using the correct file number
You have change the procedure to pass the file #
It will be different for different calling routines.
Realistically, you can't easily automate these changes.