Click here to Skip to main content
15,911,039 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hi Pin
koleraba12-Feb-10 5:31
koleraba12-Feb-10 5:31 
QuestionAppDomain Pin
Le centriste12-Feb-10 2:10
Le centriste12-Feb-10 2:10 
AnswerRe: AppDomain Pin
dan!sh 12-Feb-10 3:25
professional dan!sh 12-Feb-10 3:25 
GeneralRe: AppDomain Pin
Le centriste12-Feb-10 3:32
Le centriste12-Feb-10 3:32 
AnswerRe: AppDomain Pin
kevinnicol12-Feb-10 5:26
kevinnicol12-Feb-10 5:26 
QuestionTree view drawing problem Pin
gwithey11-Feb-10 23:32
gwithey11-Feb-10 23:32 
QuestionText Files Pin
muka6611-Feb-10 23:30
muka6611-Feb-10 23:30 
JokeRe: Text Files Pin
Richard MacCutchan11-Feb-10 23:31
mveRichard MacCutchan11-Feb-10 23:31 
GeneralRe: Text Files Pin
muka6611-Feb-10 23:33
muka6611-Feb-10 23:33 
GeneralRe: Text Files Pin
Richard MacCutchan12-Feb-10 0:11
mveRichard MacCutchan12-Feb-10 0:11 
AnswerRe: Text Files Pin
Anurag Gandhi11-Feb-10 23:49
professionalAnurag Gandhi11-Feb-10 23:49 
AnswerRe: Text Files Pin
OriginalGriff11-Feb-10 23:50
mveOriginalGriff11-Feb-10 23:50 
Here is one way:
string[] lines = new string[5];
using (StreamReader sr = new StreamReader(@"c:\XXTemp\data.txt"))
    {
    for (int i = 0; i < 5; i++)
        {
        if (!sr.EndOfStream)
            {
            lines[i] = sr.ReadLine();
            }
        }
    }
If Barbie is so popular, why do you have to buy her friends?

Eagles may soar, but weasels don't get sucked into jet engines.

If at first you don't succeed, destroy all evidence that you tried.

GeneralRe: Text Files Pin
muka6612-Feb-10 1:56
muka6612-Feb-10 1:56 
GeneralRe: Text Files Pin
ddecoy12-Feb-10 2:05
ddecoy12-Feb-10 2:05 
GeneralRe: Text Files Pin
muka6612-Feb-10 2:44
muka6612-Feb-10 2:44 
GeneralRe: Text Files Pin
harold aptroot12-Feb-10 2:07
harold aptroot12-Feb-10 2:07 
GeneralRe: Text Files Pin
daveyerwin12-Feb-10 2:22
daveyerwin12-Feb-10 2:22 
GeneralRe: Text Files Pin
muka6612-Feb-10 2:46
muka6612-Feb-10 2:46 
GeneralRe: Text Files Pin
OriginalGriff12-Feb-10 4:58
mveOriginalGriff12-Feb-10 4:58 
GeneralRe: Text Files Pin
muka6614-Feb-10 22:42
muka6614-Feb-10 22:42 
QuestionLoooping through DataSet with threads but locking Pin
Danpeking11-Feb-10 22:39
Danpeking11-Feb-10 22:39 
AnswerRe: Loooping through DataSet with threads but locking Pin
OriginalGriff11-Feb-10 22:43
mveOriginalGriff11-Feb-10 22:43 
GeneralRe: Loooping through DataSet with threads but locking Pin
Danpeking11-Feb-10 23:38
Danpeking11-Feb-10 23:38 
GeneralRe: Loooping through DataSet with threads but locking Pin
OriginalGriff11-Feb-10 23:42
mveOriginalGriff11-Feb-10 23:42 
GeneralRe: Loooping through DataSet with threads but locking Pin
Danpeking12-Feb-10 5:04
Danpeking12-Feb-10 5:04 

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.