loading and saving a text file and loading a graphic
Posted: Sat Jul 02, 2011 6:37 pm
Couple of things.
I need to write a text file (say, back.txt) with the file location of a graphic in the image control, imgBack, to the c: drive. The graphic is the background on all cards. I need my program to automatically load that background graphic when it first opens - and it will use the text file (back.txt) for the file location. Finally, it will take that file and insert it into the image placeholder called imgBack. Every card will have a image called imgBack. When someone wants to change the background, they click a button (in admin section) and choose another graphic, which is automatically inserted into the imgBack image control on all cards and the file and path info of the graphic file is updated in the text file (back.txt).
First, is there an easier way to do this than I mention above. If not, how would I go about doing the above?
Thanks for your help.
Mike
I need to write a text file (say, back.txt) with the file location of a graphic in the image control, imgBack, to the c: drive. The graphic is the background on all cards. I need my program to automatically load that background graphic when it first opens - and it will use the text file (back.txt) for the file location. Finally, it will take that file and insert it into the image placeholder called imgBack. Every card will have a image called imgBack. When someone wants to change the background, they click a button (in admin section) and choose another graphic, which is automatically inserted into the imgBack image control on all cards and the file and path info of the graphic file is updated in the text file (back.txt).
First, is there an easier way to do this than I mention above. If not, how would I go about doing the above?
Thanks for your help.
Mike