Click here to Skip to main content
15,927,514 members
Home / Discussions / C#
   

C#

 
Questionhow to increase decrease form size on timer tick Pin
D i x y1-Dec-07 0:31
D i x y1-Dec-07 0:31 
AnswerRe: how to increase decrease form size on timer tick Pin
Anthony Mushrow1-Dec-07 2:22
professionalAnthony Mushrow1-Dec-07 2:22 
QuestionHow to Change a color in TextBox? Pin
vijayashanthi30-Nov-07 23:53
vijayashanthi30-Nov-07 23:53 
AnswerRe: How to Change a color in TextBox? Pin
pmarfleet1-Dec-07 2:15
pmarfleet1-Dec-07 2:15 
Questionwhat is assembly Pin
wasimsharp30-Nov-07 23:18
wasimsharp30-Nov-07 23:18 
AnswerRe: what is assembly Pin
Christian Graus30-Nov-07 23:51
protectorChristian Graus30-Nov-07 23:51 
AnswerRe: what is assembly Pin
Zoltan Balazs1-Dec-07 11:54
Zoltan Balazs1-Dec-07 11:54 
QuestionReading a file and parsing the content to string array Pin
PS@Codeproj30-Nov-07 23:05
PS@Codeproj30-Nov-07 23:05 
Hi All,
See the below lines of code.
StreamReader objReader = new StreamReader("c:\\test.txt"); <br />
                string sLine = "";<br />
                ArrayList arrText = new ArrayList();<br />
                while (sLine != null)<br />
                {<br />
                    sLine = objReader.ReadLine();<br />
                    if (sLine != null)<br />
                        arrText.Add(sLine);<br />
                }<br />
                objReader.Close();<br />
                foreach (string sOutput in arrText)<br />
                    MessageBox.Show(sOutput);


In the above sample, am reading a text file and populating the array list. In this case, the output shall be
each location of the array contain the entire line of string

But, i want to get each item (string) of the single line of file into a seperate location of the array. Can anyone help?

Is there any way to read a csv formatted file ?
AnswerRe: Reading a file and parsing the content to string array Pin
Christian Graus30-Nov-07 23:52
protectorChristian Graus30-Nov-07 23:52 
AnswerRe: Reading a file and parsing the content to string array Pin
PIEBALDconsult1-Dec-07 3:56
mvePIEBALDconsult1-Dec-07 3:56 
Questionexpression blend database problem !!!! Pin
angels77730-Nov-07 22:35
angels77730-Nov-07 22:35 
AnswerRe: expression blend database problem !!!! Pin
angels77730-Nov-07 23:24
angels77730-Nov-07 23:24 
Questionerror(class1.cs is inaccessible due to protection level) Pin
chanzeb30-Nov-07 21:53
chanzeb30-Nov-07 21:53 
AnswerRe: error(class1.cs is inaccessible due to protection level) Pin
Pankaj - Joshi30-Nov-07 21:59
Pankaj - Joshi30-Nov-07 21:59 
GeneralRe: error(class1.cs is inaccessible due to protection level) Pin
chanzeb30-Nov-07 22:07
chanzeb30-Nov-07 22:07 
GeneralRe: error(class1.cs is inaccessible due to protection level) Pin
Christian Graus30-Nov-07 22:20
protectorChristian Graus30-Nov-07 22:20 
GeneralRe: error(class1.cs is inaccessible due to protection level) Pin
Pankaj - Joshi30-Nov-07 22:28
Pankaj - Joshi30-Nov-07 22:28 
QuestionA button help Pin
Strategic_Thinker30-Nov-07 21:49
Strategic_Thinker30-Nov-07 21:49 
AnswerRe: A button help Pin
chanzeb30-Nov-07 22:10
chanzeb30-Nov-07 22:10 
AnswerRe: A button help Pin
Anthony Mushrow1-Dec-07 2:25
professionalAnthony Mushrow1-Dec-07 2:25 
Questiondataadpter Pin
SVb.net30-Nov-07 21:45
SVb.net30-Nov-07 21:45 
AnswerRe: dataadpter Pin
PIEBALDconsult1-Dec-07 8:26
mvePIEBALDconsult1-Dec-07 8:26 
QuestionVS.NET 2005 IDE problem Pin
Pankaj - Joshi30-Nov-07 21:33
Pankaj - Joshi30-Nov-07 21:33 
AnswerRe: VS.NET 2005 IDE problem Pin
Mustafa Ismail Mustafa30-Nov-07 21:55
Mustafa Ismail Mustafa30-Nov-07 21:55 
GeneralRe: VS.NET 2005 IDE problem Pin
Pankaj - Joshi30-Nov-07 21:58
Pankaj - Joshi30-Nov-07 21:58 

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.