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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top