Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
AnswerRe: please i need the complation of 4 queen Pin
Viral Upadhyay9-Apr-10 4:38
Viral Upadhyay9-Apr-10 4:38 
GeneralRe: please i need the complation of 4 queen Pin
amrreko9-Apr-10 5:38
amrreko9-Apr-10 5:38 
Questionserver extension interface concept Pin
dialer19-Apr-10 2:46
dialer19-Apr-10 2:46 
Questionreading from a file and retrieving contents Pin
Morgs Morgan9-Apr-10 2:09
Morgs Morgan9-Apr-10 2:09 
AnswerRe: reading from a file and retrieving contents Pin
J4amieC9-Apr-10 2:29
J4amieC9-Apr-10 2:29 
GeneralRe: reading from a file and retrieving contents Pin
Morgs Morgan9-Apr-10 3:10
Morgs Morgan9-Apr-10 3:10 
AnswerRe: reading from a file and retrieving contents Pin
OriginalGriff9-Apr-10 2:30
mveOriginalGriff9-Apr-10 2:30 
GeneralRe: reading from a file and retrieving contents Pin
Morgs Morgan9-Apr-10 3:32
Morgs Morgan9-Apr-10 3:32 
Hi OG,
Thanks alot,
you code works quiet ok but I have another issue, look at my code below:
HttpPostedFile myFile = files.PostedFile;// Get a reference to PostedFile object
     string strFilename = Path.GetFileName(myFile.FileName);
     string[] lines = File.ReadAllLines(strFilename);
     foreach (string s in lines)
     {
         string[] fragments = s.Split(',');

         errors.Text = fragments[0];
         errors.Visible = true;
     }

remember the contents of my file look like:

Kiss,Simwaba,morgan@domain.co.za,0743720187,1987/12/31
Person,Simwaba,morgan@domain.co.za,0743720187,1987/12/31
what happens is that when i pick
errors.Text = fragments[0];
it
returns "Person" which is the first index[0] in the second line.
I don't quiet know why it ignores the first line....

Please help me in case am making a mistake somewhere.

Morg
QuestionA reference to 'mscorlib' cannot be added Pin
sekannak9-Apr-10 2:00
sekannak9-Apr-10 2:00 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
Luc Pattyn9-Apr-10 2:06
sitebuilderLuc Pattyn9-Apr-10 2:06 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
Morgs Morgan9-Apr-10 2:13
Morgs Morgan9-Apr-10 2:13 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
harold aptroot9-Apr-10 2:28
harold aptroot9-Apr-10 2:28 
GeneralMessage Removed Pin
9-Apr-10 2:31
sekannak9-Apr-10 2:31 
GeneralRe: A reference to 'mscorlib' cannot be added Pin
harold aptroot9-Apr-10 2:34
harold aptroot9-Apr-10 2:34 
RantRe: A reference to 'mscorlib' cannot be added Pin
harold aptroot9-Apr-10 3:30
harold aptroot9-Apr-10 3:30 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
sekannak9-Apr-10 2:33
sekannak9-Apr-10 2:33 
GeneralRe: A reference to 'mscorlib' cannot be added Pin
Dave Kreskowiak9-Apr-10 3:19
mveDave Kreskowiak9-Apr-10 3:19 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
Luc Pattyn9-Apr-10 2:36
sitebuilderLuc Pattyn9-Apr-10 2:36 
AnswerRe: A reference to 'mscorlib' cannot be added Pin
PIEBALDconsult9-Apr-10 4:41
mvePIEBALDconsult9-Apr-10 4:41 
Questionup_down control Pin
Member 5903109-Apr-10 1:33
Member 5903109-Apr-10 1:33 
AnswerRe: up_down control Pin
Dave Kreskowiak9-Apr-10 3:10
mveDave Kreskowiak9-Apr-10 3:10 
QuestionRandom.next(min,max) Pin
igalep1329-Apr-10 0:42
igalep1329-Apr-10 0:42 
AnswerRe: Random.next(min,max) Pin
Luc Pattyn9-Apr-10 0:55
sitebuilderLuc Pattyn9-Apr-10 0:55 
GeneralRe: Random.next(min,max) Pin
igalep1329-Apr-10 1:02
igalep1329-Apr-10 1:02 
GeneralRe: Random.next(min,max) Pin
Luc Pattyn9-Apr-10 1:08
sitebuilderLuc Pattyn9-Apr-10 1:08 

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.