write data to textfile using C#