If this is just a proof of concept ignore my comment below
If this is to start creating configuration for your application a txt file will work, but is probably not the best option around there. You can use
- ini files (Please don't)
- xml files (better)
- App.config or similar (recommended, certainly if you want machine based settings)
- Database (I usually use this one as much as possible and use an app.config to point to the database)
Note that there is a difference between user settings (eg, language, application options, ...) and system settings (time outs, root paths, database connection strings, ...) You might want to split those.
//How many lines should be loaded?
int NumberOfLines = 15;
//Make our array for each line
string ListLines = new string[NumberOfLines];
//Read the number of lines and put them in the array
for (int i = 1; i < NumberOfLines; i++)
ListLines[i] = tr.ReadLine();
if the title is in number 5 line
this.text = ListLines;
one all the lines are added in the array then you can pick your desired one.
hope this will help you..
Last Visit: 31-Dec-99 19:00 Last Update: 19-Nov-17 21:52