I'm trying to load a song at runtime using XNA Game Studio. However, it isn't in a .xnb format unless it was in the Content Project folder when the program was first compiled. As I want to retrieve the file from anywhere on the computer and load it with the Content Pipeline, I don't know what to do except for having the user put their song into the Content Project folder before they start the program. However, I was wondering if there was a better, more user-friendly way to do this. Also, they won't be able to put anything in the Content Project folder at all when the app is released as only the .exe will be released, not the actual VS2012 solution. Is there a way to load files at runtime without them being in the Content Project folder?
Thanks in advance!
XNA contains built in methods to handle this (No need for all the codework in Pat's answer!)
@"C:\Myfile.wav"
can be a relative or absolute path.