Hey!, finally I've done my wsq16 wich is about read file and do stuff with it. There's something that helped me a lot! and it is the code of Eduardo Tostado, you can check it; also the Ken's page about cpp reference which we can use it in exams helped to me a lot to do this WSQ and, of course the book. The chapter 15 explains ecerything about how to read files in code.
Here's my code at Github, enjoy!