You would be better off making this _resourceFile.text = "firstProperty=foo.bar"_. Otherwise multiple calls would inadvertently keep appending to the file.