Re: [2005] saving techniques
Search for StreamWriter in this forum, you will find numerous examples of writing to, and reading from, text files. Considering what you are doing, a text file seems like the way to go. You would basically write each of the items sequentially into the file in a set order. To read it, since you know the order, you just read them back out of the file in the reverse order of how you put them in.
Re: [2005] saving techniques
ok, I understand a little bit about streamwriter now. However, I don't know the number of textboxes at design time; they are dynamically created. When loading the file, how can I distinguish when I'm changing to the other column?
Re: [2005] saving techniques
Just make "sections" in your text file. Some text file like this will work
Code:
<Left Column>
this
is
some
sample
</Left Column>
<Right Column>
123
456
789
</Right Column>
So when you read the text file line by line, if the line = <Left Colum> then you know that the following lines are text from the textboxes in the left column. You just keep reading them, and for each line, you create a ne textbox for the left column on your form and set its text property = the text of the line. You keep doing this until the line = </Left Column>. Do the same for the right column. With my text file example, you have the left colum with 4 textboxes and the right column with 3 textboxes. Hope you get the idea.
Re: [2005] saving techniques
Yes, that makes sense. So to make sections do I just use little tag things? or is that a line of text?--------never mind I understand.