title: Want to see the ouput "data.csv" in the desktop or any location
body: <pre><code>        public void CreateFileOutput(object parameter)
          {
              string workSheetName, targetFile;
              workSheetName = "data"; targetFile = "data.csv";
              string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + SourceAppFilePath + ";Extended Properties='Excel 8.0;HDR=YES;IMEX=1;';";
              OleDbConnection conn = null;
              StreamWriter wrtr = null;
              OleDbCommand cmd = null;
              OleDbDataAdapter da = null;
              try
              {
                  conn = new OleDbConnection(strConn);
                  conn.Open();
                  cmd = new OleDbCommand("SELECT * FROM [" + workSheetName + "$]", conn);
                  cmd.CommandType = CommandType.Text;
                  wrtr = new StreamWriter(targetFile);
                  da = new OleDbDataAdapter(cmd);
                  DataTable dt = new DataTable();
                  da.Fill(dt);
                  for (int x = 0; x &lt; dt.Rows.Count; x++)
                  {
                      string rowString = "";
                      for (int y = 0; y &lt; dt.Columns.Count; y++)
                      {
                          rowString += "\"" + dt.Rows[x][y].ToString() + "\",";
                      }
                      wrtr.WriteLine(rowString);
                  }
                  Console.WriteLine();
                  Console.WriteLine("Done! Your " + SourceAppFilePath + " has been converted into " + targetFile + ".");
                  Console.WriteLine();
              }
              catch (Exception exc)
              {
                  Console.WriteLine(exc.ToString());
                  Console.ReadLine();
              }
              finally
              {
                  if (conn.State == ConnectionState.Open)
                      conn.Close();
                  conn.Dispose();
                  cmd.Dispose();
                  da.Dispose();
                  wrtr.Close();
                  wrtr.Dispose();
              }
          }
  </code></pre>
  
  <p>XLS file is being converted to csv.I am able to see that in the for loop <code>wrtr.WriteLine(rowString);</code>
  But I want to see the final output file <strong>"Data.csv"</strong> in the desktop location as I am taking the source .xls file from the desktop. Provide me a solution. Thanks.</p>