I think the file approach is cleanest as it's not something that will change frequently, so having the user give it every time is a pain and error prone.