I have a winform with two data grids, and multiple text boxes. I want to give the user the option to export this data to a text document in a location of their choice on their drive. I also want the text document to be pre-formatted, and the values from the text boxes and datagrids to be plugged in.
Is it possible to pre-format a txt document using StreamWriter? And how to I go about giving the user the option of where to save this exported file?
You will have to format the string you want to write throught the StreamWriter.
Output to file
Customer number: [12345678] Customer name: [customer name]
Address: [address]
Where the information between square brackets is the information input by the user through the TextBoxes.