I am working with a text file and adding lines to it using the for append as. I have five different controls that add a file name to the text file by clicking them. If I click on the first control it adds lets say text1 which is fine. Then if I click on the third control it adds text3. Which would look like this:
text1
text3
The problem is that if click on the second control it adds text2 and the out come looks like this:
text1
text3
text2
How can i get the out come to look like this:
text1
text2
text3
The reason for this is the user right clicks on a control(image box) and can add a picture/thumbnail to the control. Then the file name of that picture gets put into the text file so when the user opens the program again it reads the text file and the picture is still there rather than being blank.
I am trying to keep the order of the file names so they match the control the user assigned them to by simply reading each line of the text file.
Does that make sense?
text1
text3
The problem is that if click on the second control it adds text2 and the out come looks like this:
text1
text3
text2
How can i get the out come to look like this:
text1
text2
text3
The reason for this is the user right clicks on a control(image box) and can add a picture/thumbnail to the control. Then the file name of that picture gets put into the text file so when the user opens the program again it reads the text file and the picture is still there rather than being blank.
I am trying to keep the order of the file names so they match the control the user assigned them to by simply reading each line of the text file.
Does that make sense?