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

C#

 
GeneralRe: how to connect MySql via network Pin
Simon_Whale22-Sep-10 22:41
Simon_Whale22-Sep-10 22:41 
GeneralRe: how to connect MySql via network Pin
Erdinc2722-Sep-10 22:56
Erdinc2722-Sep-10 22:56 
AnswerRe: how to connect MySql via network Pin
Saksida Bojan23-Sep-10 0:45
Saksida Bojan23-Sep-10 0:45 
GeneralRe: how to connect MySql via network Pin
Erdinc2723-Sep-10 1:46
Erdinc2723-Sep-10 1:46 
QuestionIcon for dll assembly Pin
Chesnokov Yuriy22-Sep-10 19:13
professionalChesnokov Yuriy22-Sep-10 19:13 
AnswerRe: Icon for dll assembly Pin
AspDotNetDev22-Sep-10 19:34
protectorAspDotNetDev22-Sep-10 19:34 
QuestionQuick C# Help Retrieve data using while (!sr.EndOfStream) Pin
d87c22-Sep-10 17:35
d87c22-Sep-10 17:35 
AnswerRe: Quick C# Help Retrieve data using while (!sr.EndOfStream) Pin
AspDotNetDev22-Sep-10 18:58
protectorAspDotNetDev22-Sep-10 18:58 
1) Use PRE tags with the lang attribute set to "C#" to format your code better so we have an easier time reading it and helping you.
2) There is no need for those two functions. Just use System.IO.File.ReadAllLines(), which returns an array of strings.
3) To output each item in the array of strings, use a for loop and either Console.WriteLine() or Console.Write().
4) Instead of using the first function to scan the file to determine the number of lines, just use a List instead of an array. Lists dynamically resize based on how many elements you put in them. Of course, this is assuming that you don't want to use System.IO.File.ReadAllLines() for some reason.

GeneralRe: Quick C# Help Retrieve data using while (!sr.EndOfStream) Pin
d87c22-Sep-10 19:05
d87c22-Sep-10 19:05 
GeneralRe: Quick C# Help Retrieve data using while (!sr.EndOfStream) Pin
AspDotNetDev22-Sep-10 19:17
protectorAspDotNetDev22-Sep-10 19:17 
QuestionRetrieve array items to use in NUnit Test Pin
mtn*rain22-Sep-10 15:01
mtn*rain22-Sep-10 15:01 
AnswerRe: Retrieve array items to use in NUnit Test Pin
Luc Pattyn22-Sep-10 15:37
sitebuilderLuc Pattyn22-Sep-10 15:37 
GeneralRe: Retrieve array items to use in NUnit Test Pin
mtn*rain22-Sep-10 15:39
mtn*rain22-Sep-10 15:39 
AnswerRe: Retrieve array items to use in NUnit Test Pin
Luc Pattyn22-Sep-10 15:44
sitebuilderLuc Pattyn22-Sep-10 15:44 
GeneralRe: Retrieve array items to use in NUnit Test Pin
mtn*rain22-Sep-10 15:48
mtn*rain22-Sep-10 15:48 
GeneralRe: Retrieve array items to use in NUnit Test Pin
Luc Pattyn22-Sep-10 15:59
sitebuilderLuc Pattyn22-Sep-10 15:59 
GeneralRe: Retrieve array items to use in NUnit Test Pin
mtn*rain22-Sep-10 16:02
mtn*rain22-Sep-10 16:02 
AnswerRe: Retrieve array items to use in NUnit Test Pin
AspDotNetDev22-Sep-10 16:07
protectorAspDotNetDev22-Sep-10 16:07 
GeneralRe: Retrieve array items to use in NUnit Test Pin
mtn*rain22-Sep-10 16:12
mtn*rain22-Sep-10 16:12 
GeneralRe: Retrieve array items to use in NUnit Test Pin
Paul Michalik22-Sep-10 20:47
Paul Michalik22-Sep-10 20:47 
Question3 way byte merge Pin
jkohler22-Sep-10 4:01
jkohler22-Sep-10 4:01 
AnswerRe: 3 way byte merge Pin
OriginalGriff22-Sep-10 4:19
mveOriginalGriff22-Sep-10 4:19 
GeneralRe: 3 way byte merge Pin
jkohler22-Sep-10 4:28
jkohler22-Sep-10 4:28 
AnswerRe: 3 way byte merge Pin
Ennis Ray Lynch, Jr.22-Sep-10 5:07
Ennis Ray Lynch, Jr.22-Sep-10 5:07 
GeneralRe: 3 way byte merge Pin
jkohler22-Sep-10 5:15
jkohler22-Sep-10 5:15 

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.