Changed IO from QTextStream to Raw data R/W