Added polling read example.

Example implemented in C and C++.