Click here to Skip to main content
Rate this: bad
good
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 5:59am

1 solution

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

Solution 1

There are several ini parser classes available:
 
http://stackoverflow.com/questions/217902/reading-writing-ini-file-in-c-sharp[^]
 
Ini files are very simple. So it's fairly trivial to roll your own class if you so desire.
 
[Update]
----------
 
In response to your comment, take a look at : http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^]
  Permalink  
v3
Comments
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.
Sorry
 
Glenn
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 : http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx
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 OriginalGriff 406
1 /\jmot 180
2 Suraj Sahoo | Coding Passion 170
3 BillWoodruff 159
4 Afzaal Ahmad Zeeshan 154
0 OriginalGriff 8,344
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,634
3 Maciej Los 5,024
4 Manas Bhardwaj 4,986


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