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

C#

 
GeneralRe: Total Upload , Download Internet Traffic Pin
Luc Pattyn12-Jun-09 12:49
sitebuilderLuc Pattyn12-Jun-09 12:49 
GeneralRe: Total Upload , Download Internet Traffic Pin
harold aptroot12-Jun-09 11:53
harold aptroot12-Jun-09 11:53 
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 
Guys i have a text file that i store my settings in so that they are availible in every forum .

basicly its in the following format

//The shared NAS download folder
DownloadFolder = /mnt/md1/public/Downloads/

//The telnet user usualy root
TelnetUser = root

//The telnet password
TelnetPassword = something

//The IP of your NAS eg 192.168.2.2
TelnetIP = 192.168.2.2


So im looking for a way to take each of those settings and turn them into strings with values inside my c# program . Im useing the stream reader class below but im not sure what to do next after i split the strings into an array .

private void LoadSettings()<br />
        {<br />
            StreamReader Settings = new StreamReader("Settings.txt");<br />
            string line;<br />
            while ((line = Settings.ReadLine()) != null)<br />
            {<br />
                if (line.StartsWith("/"))<br />
                {<br />
                }<br />
                else<br />
                {<br />
                    string[] splitArray = line.Split(new char[] { '=' });<br />
<br />
<br />
                }<br />
            }

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 
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 

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.