Click here to Skip to main content
11,795,848 members (76,129 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
Hi All,

At the moment I am trying to implement an ini loading function that will set variuos values

Posted 31-Oct-11 4:59am

1 solution

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

Solution 1

There are several ini parser classes available:[^]

Ini files are very simple. So it's fairly trivial to roll your own class if you so desire.


In response to your comment, take a look at :[^]
glennPattonWork at 31-Oct-11 11:04am
Umm thanks, fast reply the question looks like it got mangled!
glennPattonWork at 31-Oct-11 11:45am
my actual question was on how do you set the Serial port class members
string ParityVariable; // Parity.None

ComPort.Handshake = Handshake.None;
I can't seem to find a way of doing that for Handshake, Parity & Stopbit.

Nishant Sivakumar at 31-Oct-11 11:47am
I don't get what this has to do with ini files at all.

But see the example code from :
glennPattonWork at 31-Oct-11 11:51am
Don't blame you!
Nishant Sivakumar at 31-Oct-11 11:52am
Ok, this is getting to be like one of those Friday night thriller movies now. No one knows what's going on :-)
glennPattonWork at 31-Oct-11 11:56am
Sorry, I think I'll end this question and repost properly
Nishant Sivakumar at 31-Oct-11 11:58am
Good idea!
Nishant Sivakumar at 31-Oct-11 11:58am
Or just edit your OP.
Bala Selvanayagam at 31-Oct-11 12:03pm
lol thriller movie....i am still laughing :)

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

  Print Answers RSS
0 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 31 Oct 2011
Copyright © CodeProject, 1999-2015
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