Give me a little time to review this when it's not 5:30 in the morning and I've been up since 9 am yesterday, and 'relearning' c++:) But it still seems that you have have coding + filetype + charactersinfileinformat., one long string that has to be parsed by the C functions.