Probably the simplest is to go with (b), and have the caller pass the exact path to the file. I'll rework that.