Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Total Upload , Download Internet Traffic Pin
Dr.Walt Fair, PE12-Jun-09 11:56
professionalDr.Walt Fair, PE12-Jun-09 11:56 
GeneralRe: Total Upload , Download Internet Traffic Pin
harold aptroot12-Jun-09 11:58
harold aptroot12-Jun-09 11:58 
GeneralRe: Total Upload , Download Internet Traffic Pin
Dr.Walt Fair, PE12-Jun-09 12:10
professionalDr.Walt Fair, PE12-Jun-09 12:10 
GeneralRe: Total Upload , Download Internet Traffic Pin
Dave Kreskowiak12-Jun-09 12:46
mveDave Kreskowiak12-Jun-09 12:46 
AnswerRe: Total Upload , Download Internet Traffic Pin
I Believe In GOD12-Jun-09 12:24
I Believe In GOD12-Jun-09 12:24 
QuestionReadig strings from a text file ? Pin
Jasmine Pomelo12-Jun-09 10:28
Jasmine Pomelo12-Jun-09 10:28 
QuestionRe: Readig strings from a text file ? Pin
led mike12-Jun-09 10:35
led mike12-Jun-09 10:35 
AnswerRe: Readig strings from a text file ? Pin
Luc Pattyn12-Jun-09 10:46
sitebuilderLuc Pattyn12-Jun-09 10:46 
Hi,

if the non-comment lines are all "key=value" statements, AND assuming all keys are different, you could store them all in a Dictionary<string,string> making retrieval easy.

Note: Dictionaries don't preserve order, so if you were to modify and store the settings again, the file might look different (and your comments would be gone). If you want to keep comments and order, you could define your own little "MySettingItem" class to keep comment, key and value, and just build a List<MySettingItem> while reading the file.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: Readig strings from a text file ? Pin
Josh Martin12-Jun-09 12:26
Josh Martin12-Jun-09 12:26 
AnswerRe: Readig strings from a text file ? Pin
PIEBALDconsult12-Jun-09 13:23
mvePIEBALDconsult12-Jun-09 13:23 
Questionhow can I get data from database and display in textbox Pin
Adekolurejo12-Jun-09 10:15
Adekolurejo12-Jun-09 10:15 
AnswerRe: how can I get data from database and display in textbox Pin
Dave Kreskowiak12-Jun-09 11:23
mveDave Kreskowiak12-Jun-09 11:23 
QuestionRe: how can I get data from database and display in textbox Pin
Adekolurejo12-Jun-09 11:33
Adekolurejo12-Jun-09 11:33 
AnswerRe: how can I get data from database and display in textbox Pin
Dave Kreskowiak12-Jun-09 12:42
mveDave Kreskowiak12-Jun-09 12:42 
AnswerRe: how can I get data from database and display in textbox Pin
Josh Martin12-Jun-09 12:36
Josh Martin12-Jun-09 12:36 
AnswerRe: how can I get data from database and display in textbox Pin
DavidKiryazi12-Jun-09 13:35
DavidKiryazi12-Jun-09 13:35 
AnswerRe: how can I get data from database and display in textbox Pin
ishandeb12-Sep-11 3:06
ishandeb12-Sep-11 3:06 
QuestionHow To Locate Form Pin
gal00012-Jun-09 9:57
gal00012-Jun-09 9:57 
AnswerRe: How To Locate Form Pin
Nagy Vilmos12-Jun-09 10:14
professionalNagy Vilmos12-Jun-09 10:14 
GeneralRe: How To Locate Form Pin
gal00012-Jun-09 10:17
gal00012-Jun-09 10:17 
GeneralRe: How To Locate Form Pin
Luc Pattyn12-Jun-09 10:28
sitebuilderLuc Pattyn12-Jun-09 10:28 
AnswerRe: How To Locate Form Pin
I Believe In GOD12-Jun-09 10:27
I Believe In GOD12-Jun-09 10:27 
GeneralRe: How To Locate Form Pin
gal00012-Jun-09 10:34
gal00012-Jun-09 10:34 
Questionusing errorprovider control with C# form with checkboxes Pin
johnnysmith112-Jun-09 7:17
johnnysmith112-Jun-09 7:17 
AnswerRe: using errorprovider control with C# form with checkboxes Pin
OriginalGriff12-Jun-09 8:30
mveOriginalGriff12-Jun-09 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.