i know how to create associations!!!!

but i don't know how to open the file, the user clicked on, because i don't know the code for getting the file name....

*crying for help*