load files and oject to unity during the run time

Dear all

kindly I need to load certain files such as audio files movies images…

will I can do this by give the a path like the following one:
“file:///Username/Distenation/folderName/the.whatEver”

but this way is useless when I want to use my project on another computer or another user loged in.

is there a better way or regular path description so the program know how to load files from where its locates. for example in flash we use to load files like:

“/folderName/file.what ever”

or go step backward:
“…/folderName/file.what ever”

and thank you all
Khaled

Mono’s System.Environment System.IO have APIs for finding or constructing a path to local files. Don’t forget that OSX and Windows use different characters and designations for the user’s home directory, so if you’re constructing a path to work on both, you need to check which platform it is.

Windows can handle forward slashes in paths just fine. Note that System.IO is not accessible in webplayer applications for security.