Opening file

I have an assignment involving opening files from a computer, like PhotoShop or Dreamweaver. Whats the function i need to call or are there any snippet of code that i can use?

Thanks