Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have some differnt validity .dat files. i have to make the validity files from my UI page. but the thing is that there are some parameters which are having different value format.the logic of the .dat file is different from each other. so can i set catogeries the parameter which is having parameters value and reading that layout new validity .dat is created via UI screen which shoud follow the same logic for that file. means i have to make a copy of the file with same format but different value using INI file.
Posted
Comments
Zoltán Zörgő 18-Dec-12 13:36pm    
And your question is ....?
OriginalGriff 18-Dec-12 14:05pm    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
As it is, we don't know what you need help with, or what you have tried!
Use the "Improve question" widget to edit your question and provide better information.
Sergey Alexandrovich Kryukov 18-Dec-12 15:15pm    
I can help you with INI files; they are easy to work with, but — why? They are obsolete and generally not so good. Is it a legacy problem? Why not using XML or JSON? There are ready-to-use Data Contract where you don't have to work with XML or JSON manually, you just store and load/restore your whole data object graph.
—SA

1 solution

These article in code project can help you on reading and writing an INI file.

An INI file handling class using C#[^]
INI Reader / Writer Class for C#, VB.NET, and VBScript[^]
 
Share this answer
 

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