1) discussion
2) why not "\\version.txt"
3) replace everywhere in the program "\\" with "/". This way you are crossplatform