Use QTs file writing methods# instead of echo + pipe.

Signed-off-by: V10lator <v10lator@myway.de>
Merge pull request #1 from V10lator/master

Use QTs file writing methods instead of echo + pipe.