Click here to Skip to main content
12,830,669 members (43,129 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
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 18-Dec-12 8:22am
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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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[^]

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100