Click here to Skip to main content
16,004,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: syntax for drop sql table Pin
Keshav V. Kamat13-Mar-07 20:20
Keshav V. Kamat13-Mar-07 20:20 
QuestionToolbar and Server Explorer - type dialogs Pin
swjam13-Mar-07 19:09
swjam13-Mar-07 19:09 
QuestionProblem with POP email reading windows service Pin
Nitin198113-Mar-07 18:28
Nitin198113-Mar-07 18:28 
QuestionJustify text Pin
Duong Tien Nam13-Mar-07 17:51
Duong Tien Nam13-Mar-07 17:51 
AnswerRe: Justify text Pin
Duong Tien Nam13-Mar-07 20:20
Duong Tien Nam13-Mar-07 20:20 
QuestionInformation Lists Pin
JMOdom13-Mar-07 16:04
JMOdom13-Mar-07 16:04 
QuestionURGENT! Pin
jotorres13-Mar-07 15:25
jotorres13-Mar-07 15:25 
QuestionSimple CSV Reader part 2 Pin
thenamenoonehastaken13-Mar-07 13:52
thenamenoonehastaken13-Mar-07 13:52 
Hi there,

Im still trying to figure out this csv reader thingy. I know this is a really simple thing im trying to acheive but as im still only a newbie with c# im finding it rather tricky. ive got the code that im using below, and it reads the csv just fine. the only problem im having is creating the array.

the csv is really simple to read. it just looks like
the amount of rows changes but the structure is the way it appears below.
123456,1234556,23434324,12313231,3423434234,4544354
123313,2312313,44545432,12323445,2424234322,2342334

I know this is a really simple dilemma but im sure one of you genius's can figure this out.

using System;
using System.IO;

class CSVReader
{
public static void Main()
{
try
{
string FileName = "FileImport.csv";

using (StreamReader sr = new StreamReader(FileName))
{

string line;
// Read and display lines from the file until the end of
// the file is reached.

while ((line = sr.ReadLine()) != null)
{

Console.WriteLine(line);

}
}
}
catch (Exception e)
{
// Let the user know what went wrong.
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);
}
}
QuestionHow do I capturing the ouput of the external appl Pin
Eyungwah13-Mar-07 13:22
Eyungwah13-Mar-07 13:22 
AnswerRe: How do I capturing the ouput of the external appl Pin
Stefan Troschuetz13-Mar-07 23:10
Stefan Troschuetz13-Mar-07 23:10 
QuestionCustom object as datasource to datagrid Pin
chequis13-Mar-07 13:19
chequis13-Mar-07 13:19 
Questionhow i can make color to active line in richtextBox ? Pin
Ahmed R El Bohoty13-Mar-07 13:11
Ahmed R El Bohoty13-Mar-07 13:11 
AnswerRe: how i can make color to active line in richtextBox ? Pin
TeddyLiu13-Mar-07 15:16
TeddyLiu13-Mar-07 15:16 
GeneralRe: how i can make color to active line in richtextBox ? Pin
hiremath7113-Mar-07 18:37
hiremath7113-Mar-07 18:37 
GeneralRe: how i can make color to active line in richtextBox ? Pin
Ahmed R El Bohoty14-Mar-07 10:16
Ahmed R El Bohoty14-Mar-07 10:16 
QuestionLooking for a good way to get values from a byte array. Pin
dino209413-Mar-07 11:45
dino209413-Mar-07 11:45 
AnswerRe: Looking for a good way to get values from a byte array. Pin
CPallini13-Mar-07 12:22
mveCPallini13-Mar-07 12:22 
AnswerRe: how can I convert UPPER case to lower case? Pin
Edmundisme13-Mar-07 11:23
Edmundisme13-Mar-07 11:23 
GeneralRe: how can I convert UPPER case to lower case? Pin
Khoramdin13-Mar-07 11:24
Khoramdin13-Mar-07 11:24 
GeneralRe: how can I convert UPPER case to lower case? Pin
Guffa13-Mar-07 20:04
Guffa13-Mar-07 20:04 
JokeModified.Re: how can I convert UPPER case to lower case? Pin
CPallini13-Mar-07 12:24
mveCPallini13-Mar-07 12:24 
GeneralRe: how can I convert UPPER case to lower case? Pin
Edmundisme13-Mar-07 12:28
Edmundisme13-Mar-07 12:28 
QuestionImage recognition Pin
sharpiesharpie13-Mar-07 10:41
sharpiesharpie13-Mar-07 10:41 
JokeRe: Image recognition Pin
CPallini13-Mar-07 12:31
mveCPallini13-Mar-07 12:31 
AnswerRe: Image recognition Pin
mav.northwind13-Mar-07 20:24
mav.northwind13-Mar-07 20:24 

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.