How to write in file the result of querry in C#. For example(Name salary) : I need to write in .doc file the result of querry in C#
     Code
     `SqlCommand command = new SqlCommand("SELECT Id,Name,Price FROM [Products] WHERE [Id]=@Id ", sqlConnection);
While (await sqlReader.ReadAsync()){
listBox3.Items.Add(Convert.ToString(sqlReader["id"]) + "  " + Convert.ToString(sqlReader["Name"]) + "  " + (1 + ((readSearch1 - f) * 1.2) / f));}`