Update write string to file.cs