Fix AppendFile Operation.

Task-number: QTIFW-284

Change-Id: I60079ebe9d13d17ed5ae38b545cceba4f35c7179
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>