Use QTs file writing methods instead of echo + pipe.

Signed-off-by: V10lator <v10lator@myway.de>