Identifying usb devices and copying form them in C++

Hi,

I'm a bit of a newbie in linux c++ although I've been doing winderz programming for years, so forgive this simple question.

I want to write a program for my wife to copy downloaded files to her ebook reader or mobile phone, and when the program starts for it to identify which device is plugged in and set the output folder correctly (based on a config file).

I'm not sure how to identify the attached device and get it's mount point.

Could someone give me a quick starter (or sample?) please.. Once I know the libraries or whatever I should be ok.

Cheers

Samop
Registered users can post here. Sign in or register to post.