Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

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


Posted

1 solution

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[^]
 
Share this answer
 
v3
Comments
glennPattonWork3 31-Oct-11 11:04am    
Umm thanks, fast reply the question looks like it got mangled!
glennPattonWork3 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
Nish Nishant 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
glennPattonWork3 31-Oct-11 11:51am    
Don't blame you!
Nish Nishant 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 :-)

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