If I add a file as a internal resource with say ID_MYFILE

how can I convert this resource into a string suitable for passing to a function which previously required a path to a file? Can it be done?