Quantcast
Viewing all articles
Browse latest Browse all 6

Reading and writing to a file

IanG,

 

Thanks for the response, I could use an Access DB for this, but I just wanted to get away from them as the OLEDB is a bit slow in my opinion.  The stream reader/writer is far quicker, and I am only going to handle a small amount of data, perhaps 7 lines in total, each line having about a total of 5-8 strings, that wouldn't change often if at all.  Plus I wanted the user to be able to modify the file without needing Access, or SQLServer express.

 

Basically this is what I am trying to accomplish.

 

I ahve a program that has some settings, most of the settings are being handled in the registry of the system, but there are a few settings that could require more space in the registry than I am willing to write to, so I wanted to use this text file.  The first string of each line would be used to populate a combo box, this is easy enough and I can get it to work as I want it to, then as the user selects his/her item in the combo box, the other settings (strings) would populate into the empty textboxes.  All of this is being handled properly and works quite well, the ony problem I have is that if the user changes a setting, I want it to modify the string on the line that contains the corresponding starting string value.

 

I hope that was clear enough.

 

Again, thanks.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>