Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Well... Pin
jblouir14-Jun-07 13:47
jblouir14-Jun-07 13:47 
GeneralRe: Well... Pin
Christian Graus14-Jun-07 13:52
protectorChristian Graus14-Jun-07 13:52 
AnswerRe: Using your own classes in methods. Pin
Guffa14-Jun-07 13:30
Guffa14-Jun-07 13:30 
GeneralRe: Using your own classes in methods. Pin
Rudolf Jan15-Jun-07 0:27
Rudolf Jan15-Jun-07 0:27 
Questionmulti list problem [modified] Pin
bolhassanim@bellsouth.net14-Jun-07 10:34
professionalbolhassanim@bellsouth.net14-Jun-07 10:34 
AnswerRe: multi list problem Pin
Christian Graus14-Jun-07 11:47
protectorChristian Graus14-Jun-07 11:47 
GeneralRe: multi list problem Pin
bolhassanim@bellsouth.net14-Jun-07 18:19
professionalbolhassanim@bellsouth.net14-Jun-07 18:19 
QuestionDelimiters - Is there a simple way Pin
haz1314-Jun-07 10:19
haz1314-Jun-07 10:19 
I have a text file of the following format

"apple","orange","pear" etc

I have tried both char and string seperators but can't think of a way grab the data cleanly without including a " or , . I either end up with "apple" "orange" "pear" or "apple orange pear"

The code I have been using.

private static char[] charSeperator = new char[] { ',' };
private static string[] strSeperator = new string[] {"\",\""};


strArray = strLine.Split(charSeperator);
strArray = strLine.Split(strSeperator,StringSplitOptions.None);

Is there a simple way of grabing apple orange and pear from the text file, without having to do further data cleaning?

Thanks in advance for any help you can offer


Haz

AnswerRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:31
professionalPaul Conrad14-Jun-07 10:31 
GeneralRe: Delimiters - Is there a simple way Pin
haz1314-Jun-07 10:39
haz1314-Jun-07 10:39 
GeneralRe: Delimiters - Is there a simple way Pin
Giorgi Dalakishvili14-Jun-07 10:44
mentorGiorgi Dalakishvili14-Jun-07 10:44 
GeneralRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:52
professionalPaul Conrad14-Jun-07 10:52 
GeneralRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:44
professionalPaul Conrad14-Jun-07 10:44 
GeneralRe: Delimiters - Is there a simple way Pin
haz1314-Jun-07 10:51
haz1314-Jun-07 10:51 
AnswerThe Simply Way. ;-) Pin
jblouir14-Jun-07 12:58
jblouir14-Jun-07 12:58 
GeneralRe: The Simply Way. ;-) Pin
Christian Graus14-Jun-07 13:01
protectorChristian Graus14-Jun-07 13:01 
GeneralRe: The Simply Way. ;-) Pin
jblouir14-Jun-07 13:12
jblouir14-Jun-07 13:12 
Generalbtw Haz13 Pin
jblouir14-Jun-07 13:18
jblouir14-Jun-07 13:18 
AnswerRe: Delimiters - Is there a simple way Pin
Life as a Coder14-Jun-07 19:27
Life as a Coder14-Jun-07 19:27 
QuestionA plugin for ms office Pin
Mori Nei14-Jun-07 10:14
Mori Nei14-Jun-07 10:14 
AnswerRe: A plugin for ms office Pin
ekynox14-Jun-07 12:25
ekynox14-Jun-07 12:25 
QuestionWhere to use Dataset and when to use DataTable? Pin
Khoramdin14-Jun-07 8:14
Khoramdin14-Jun-07 8:14 
AnswerRe: Where to use Dataset and when to use DataTable? Pin
Dave Kreskowiak14-Jun-07 8:29
mveDave Kreskowiak14-Jun-07 8:29 
GeneralRe: Where to use Dataset and when to use DataTable? Pin
Khoramdin14-Jun-07 14:32
Khoramdin14-Jun-07 14:32 
QuestionGet rid of delegate declarations Pin
Genbox14-Jun-07 7:22
Genbox14-Jun-07 7:22 

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.