writing survey config file - repaired parsing of text files

Signed-off-by: LK <LK@uni>