Why did you title this Qt. Do you want someone to comment on how to use Qt APIs to read the file? Write your attempt first using Qt APIs and someone can suggest improvements.