write settings to a .ini file?

Status
Not open for further replies.

Getox

Well-known member
Joined
Jul 8, 2004
Messages
122
Hi, im totaly new to .NET and all iv been doing is making browser frames to php pages to do stuff like show user IP and show a chat script, but now im working on a web browser and i want to add the start page into a .ini file
so after the setup completes and when they open the program i want it to check the .ini file for the line "setup=false" and it will open a form(settings form) and will ask them to insert a start page and then when they click OK it will update the file to this
"setup=true
startpage=http://www.thepage.com"

so can anyone please tell how to do this or even make the files to i can just add them to my program?

thanks.
 
Use the System.IO.TextReader and System.IO.TextWriter, that will do everything you need to do.... your going to make a web browser?
 
Wherever you need it in your code, probably in the Form Load event.
 
Getox said:
ok, and then how do i make it write to the file itself ?
Its a fairly common procedure outlined in several places in your help files.
 
i cant be bothered reading help files. cant someone just tell me the code and where it goes?
 
Getox said:
i cant be bothered reading help files.
That is the exact reason why myself, and doubt anyone else will help you any further than I have already.
 
Because noone will do your work for you, without you at least trying to do it. People are generous enough to even look at your post using their free time so you should have some respect. With that attitude you the only way you will get this done is if you pay somebody.
 
This bloke is unreal!

Getox if you want a solution i will provide one.....but at a cost for you now.
 
Status
Not open for further replies.
Back
Top