right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
Printable View
right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
This is the method I use. It works fairly well.
Encrypt and write registry values
PS: I know the sample only shows connection strings but it can be modified to save other info also. The nice part is it's encrypted so you can keep sensative info there aswell.
Actually, if done correctly, a textfile should be more efficient. It would also be easier for users to take settings with them when they format or go from computer to computer.Quote:
Originally posted by Synth3t1c
right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
I've used both and there really isn't that much of a difference. in performance between the registry and text files. I only use the registry because I don't want users to be able to take/read the text files for security reasons. Using the app.config to hold key value pairs for config info works pretty well also if hiding your config info is not important to you. Lemme know I have the code for that also.
actually, text files would be easier. here, im writting a gradebook program. i can make it from the period choice, to the student names (including loading and saving student names) and then thats it... i want it to be able to load a table, but since theres no such thing....
You're gonna throw it into the registry? bleh!Quote:
Originally posted by Synth3t1c
i want it to be able to load a table, but since theres no such thing....
Throw it into an XML file. Or a spreadsheet. Hell, you don't have to have it in table form when saved, just when it is displayed.
You could even serialize whatever you are using as a table to save it.
i want them to be able to have a table form inside the program! teach me teacher!Quote:
Originally posted by kasracer
Throw it into an XML file. Or a spreadsheet. Hell, you don't have to have it in table form when saved, just when it is displayed.
bump