import files

Trxzz

New member
Joined
Mar 17, 2009
Messages
2
Programming Experience
Beginner
Hi guys i'm Sorry for this question but im a begginer and i dont know much about this language so.
I wanna know how to import files and then i want you to tell me a code,when i press a button this file will be openned (it is a avi file,if helps).
thanks!
 
What exactly do you mean by "import"? What exactly do you mean by "open"?

If you want to execute a data file in its default application then you can call Process.Start and pass the file path as an argument. Doing so with an AVI file will open Windows Media Player, or whatever the user's default media player is, and start playing the video. That's one definition of "open", but you might also want to access the binary contents of the file, which would be another.
 
Back
Top