Click here to Skip to main content
15,867,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Can somebody give me a code example in c# on how that I make my program generate a ini file after I exit it.

What I have tried:

I have tried nothing so far need some advice!
Posted
Updated 4-Apr-18 20:18pm

You create the ini (configuration file) while you are running, after you exit there is no code to run...

See these :
A Simple and Efficient INI File Reader in C#[^]

GitHub - rickyah/ini-parser: Read/Write an INI file the easy way![^]
 
Share this answer
 
Comments
Member 13755707 5-Apr-18 0:25am    
Thanks for the help
Quote:
how that I make my program generate a ini file after I exit it.

Short answer: you don't. Programs never do something after exit.
Generally speaking, for any interactive program, the program is "do something" on event or user choice.
In your case, rather than just "exit" on request, the program is "do something (write the ini file) and then exit"
 
Share this answer
 
Comments
Member 13755707 5-Apr-18 2:54am    
Thanks that helped me out

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900