System.Windows.Forms = WinForm, not WPF. Are you sure that this is WPF?
If it is WPF app, then have a read of this to answer your question:
WPF Tutorial - The SaveFileDialog[
^]
If it is a WinForm app, then have a read of this to answer your question:
How to: Save Files Using the SaveFileDialog Component | Microsoft Docs[
^]
With regards to the List and
StringBuilder[
^], Your ouput string has no seperators in the name, so parsing the data back in will be troublesome. It will look like:
HondaToyotaFiatFerrari
You need to have a delimiter to separate them out:
var cars = new string[] { "Honda", "Toyota", "Fiat", "Ferrari" };
var outString1 = String.Join(", ", cars);
var outString2 = String.Join(Environment.NewLine, cars);