Click here to Skip to main content
15,918,343 members
Home / Discussions / C#
   

C#

 
AnswerRe: Best way remove item from array list Pin
Ravi Bhavnani28-Jul-06 2:38
professionalRavi Bhavnani28-Jul-06 2:38 
Questionhow to split CSV file Pin
YogeshRT27-Jul-06 23:59
YogeshRT27-Jul-06 23:59 
AnswerRe: how to split CSV file Pin
gnjunge28-Jul-06 0:44
gnjunge28-Jul-06 0:44 
GeneralRe: how to split CSV file Pin
YogeshRT28-Jul-06 0:57
YogeshRT28-Jul-06 0:57 
GeneralRe: how to split CSV file Pin
gnjunge28-Jul-06 1:07
gnjunge28-Jul-06 1:07 
AnswerRe: how to split CSV file Pin
stancrm28-Jul-06 0:45
stancrm28-Jul-06 0:45 
AnswerRe: how to split CSV file Pin
darkelv28-Jul-06 2:54
darkelv28-Jul-06 2:54 
GeneralRe: how to split CSV file [modified] Pin
YogeshRT1-Aug-06 21:54
YogeshRT1-Aug-06 21:54 
Hello Sir Its nice one ,Its working properly.
Thanks for this.
but I am unable to understand this code ,could u plz explain it or give me site referance for this.
bcoz I have a file like

"G.H.",,"","","",,,"Company Friend
Office
Lute

",,,,"Normal","False",,,"Normal"


//my code is
StreamReader r=File.OpenText(file_location);
strUserInfo = r.ReadLine();
if( strUserInfo != null)
{
Regex reg = new Regex(",(?=(?:[^\"]*\"[^\"]*\"])*(?![^\"]*\"))");
string[] split = reg.Split(strUserInfo);
//code
}

in this it read above code as 5 lines(in CSV file it seperate "notes" field) but it should be only one line,what should I do for this?

Thank you again


-- modified at 4:00 Wednesday 2nd August, 2006

Yogesh_T

QuestionComputer Impersonation Pin
Baz27-Jul-06 23:54
Baz27-Jul-06 23:54 
AnswerRe: Computer Impersonation Pin
J4amieC28-Jul-06 0:17
J4amieC28-Jul-06 0:17 
QuestionHow to suppress a scroll bar Pin
jjansen27-Jul-06 23:54
jjansen27-Jul-06 23:54 
AnswerRe: How to suppress a scroll bar Pin
jjansen30-Jul-06 20:38
jjansen30-Jul-06 20:38 
GeneralRe: How to suppress a scroll bar Pin
amymarie318-Sep-06 10:04
amymarie318-Sep-06 10:04 
Questioninvoke php script with c# Pin
Legolas_Bilbao27-Jul-06 23:51
Legolas_Bilbao27-Jul-06 23:51 
QuestionHow to upload video Pin
saurabh.sharma27-Jul-06 23:50
saurabh.sharma27-Jul-06 23:50 
AnswerRe: How to upload video Pin
stancrm28-Jul-06 0:24
stancrm28-Jul-06 0:24 
GeneralRe: How to upload video Pin
saurabh.sharma28-Jul-06 1:47
saurabh.sharma28-Jul-06 1:47 
GeneralRe: How to upload video Pin
cje28-Jul-06 9:25
cje28-Jul-06 9:25 
QuestionHow to Close a dialog Launched in another Thread Pin
Mursil27-Jul-06 23:34
Mursil27-Jul-06 23:34 
AnswerRe: How to Close a dialog Launched in another Thread Pin
J4amieC28-Jul-06 0:16
J4amieC28-Jul-06 0:16 
QuestionReflection and Type.GetFields() with inherited private fields Pin
nexo5470027-Jul-06 23:29
nexo5470027-Jul-06 23:29 
AnswerRe: Reflection and Type.GetFields() with inherited private fields Pin
LongRange.Shooter28-Jul-06 8:56
LongRange.Shooter28-Jul-06 8:56 
QuestionHow to save file address in database Pin
saurabh.sharma27-Jul-06 23:28
saurabh.sharma27-Jul-06 23:28 
AnswerRe: How to save file address in database Pin
Khawar Abbas127-Jul-06 23:59
Khawar Abbas127-Jul-06 23:59 
QuestionProblem with Generated DLL ... Pin
SD327-Jul-06 23:28
SD327-Jul-06 23:28 

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.