Nexus.Client.Games.Steam.KeyValue.WriteString C# (CSharp) Method

WriteString() private static method

private static WriteString ( FileStream f, string str, bool quote ) : void
f System.IO.FileStream
str string
quote bool
return void
		private static void WriteString(FileStream f, string str, bool quote)
		{
			byte[] bytes = Encoding.UTF8.GetBytes((quote ? "\"" : "") + str.Replace("\"", "\\\"") + (quote ? "\"" : ""));
			f.Write(bytes, 0, bytes.Length);
		}