Monitoring a file for updates
I am new to Linux, but have been doing some background work for checking CDC-ACM interaction on Linux.
My USB device gets recognized as /dev/ttyACM0. I can manually read this as "cat /dev/ttyACM0"
However, this external device will keep writing into this file, i want to get an update in a c++ program as an when this happens.
Can anyone help me?