export Win Form C# variables to a file?

  • Thread starter Thread starter Brian Underhill via DotNetMonster.com
  • Start date Start date
B

Brian Underhill via DotNetMonster.com

I am trying to take form variables and send them to a file that can be viewed
later. This needs multiple strings to be added and I am trying to keep it as
simple as possible. I have been trying to send them to an Excel spreadsheet
for organization purposes, yet it seems to be a massive amount of code that
doesn't offer much in the line of simplicity... anything would help...any
suggestions at all...
 
Create an array of strings, put your data in the array, use string.Join to
put the array data all in one string, then save that to a file. Later you
can use string.Split to get the original array back.
 
If the number of strings is known, you can create a class with a
property for each string. This class can easily be serialized using xml.
 
Back
Top