Glad to help. Interesting, perhaps the newer <iostream> will not allow the << operator with binary files.