Unless the function is overloaded you could overload the istream operator >> for function pointers, but i'm not enteriely sure if it's possible.