Fix #395 issue and fix read function

Read function was broken. It read the emthy string and function "sscanf" wasn't throwing exception. Variable "i" was unchanged ( i = 101 ) and then "i += chap*100;". Eventually i = 201. So chapter 2, mission 1 is passed.