Yes fopen take a handle on a file or a device. I always use these function.
But in we must send an IO control to the device to have the specific data.
And every IOCTL is dependent to driver.
So, after opening the device with fopen. I should know what IOCTL should be
sent with ioctl function. 

Thanks for your support

-----Original Message-----
From: Alan Stern [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 7:06 PM
To: Abdelkader YEDDES
Cc: [email protected]
Subject: RE: [Linux-usb-users] API that can read the PID / VID


On Fri, 19 May 2006, Abdelkader YEDDES wrote:

> Thanks for this information,
> 
> But, can we do the same thing using a programming lanaguage such as C, 
> C++ or Java. $ cat /sys/bus/usb/devices/1-4/idProduct : Is just a 
> shell command, But if I want to develop a Graphical Interface. How can 
> I obtain this information ?

Have you ever heard of fopen and scanf?

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to