How do I open a file using APIs?

Thanks

dries