Click here to Skip to main content
15,908,906 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exception handling question Pin
Christian Graus20-Aug-08 23:18
protectorChristian Graus20-Aug-08 23:18 
QuestionMemory leaks tools Pin
tom groezer20-Aug-08 22:38
tom groezer20-Aug-08 22:38 
GeneralRe: Memory leaks tools Pin
selcuks20-Aug-08 22:50
selcuks20-Aug-08 22:50 
GeneralRe: Memory leaks tools Pin
tom groezer20-Aug-08 23:34
tom groezer20-Aug-08 23:34 
GeneralRe: Memory leaks tools Pin
leppie21-Aug-08 22:03
leppie21-Aug-08 22:03 
Questionstructure storage API Pin
Miss_hacker20-Aug-08 21:56
Miss_hacker20-Aug-08 21:56 
AnswerRe: structure storage API Pin
Christian Graus20-Aug-08 22:28
protectorChristian Graus20-Aug-08 22:28 
Questionstring comparasion Pin
AndieDu20-Aug-08 21:32
AndieDu20-Aug-08 21:32 
Hi All,

I got two txt files that are StreamReader into my program, now i would like to compare those two files line by line, however, the following codes are not working coz it won't loop the first while loop until the second while loop finishes.

StreamReader sr = new StreamReader("c:\\asmx\\Hand_Written_Result.txt");
StreamReader sr1 = new StreamReader("c:\\asmx\\Auto_Generated_Result.txt");
while ((line = sr.ReadLine()) != null)
{
while ((line_1 = sr1.ReadLine()) != null)
{
Assert.AreEqual(line, line_1);
i++;
}
i++;
}

Thanks a lot
AnswerRe: string comparasion Pin
selcuks20-Aug-08 21:41
selcuks20-Aug-08 21:41 
GeneralRe: string comparasion Pin
AndieDu21-Aug-08 15:30
AndieDu21-Aug-08 15:30 
AnswerRe: string comparasion Pin
Christian Graus20-Aug-08 21:54
protectorChristian Graus20-Aug-08 21:54 
GeneralRe: string comparasion Pin
AndieDu21-Aug-08 15:31
AndieDu21-Aug-08 15:31 
QuestionA COM Interop Question Pin
Xiaoming Qian20-Aug-08 21:21
Xiaoming Qian20-Aug-08 21:21 
AnswerRe: A COM Interop Question Pin
AhsanS20-Aug-08 21:37
AhsanS20-Aug-08 21:37 
AnswerRe: A COM Interop Question Pin
Green Fuze20-Aug-08 22:35
Green Fuze20-Aug-08 22:35 
GeneralRe: A COM Interop Question Pin
Xiaoming Qian21-Aug-08 19:04
Xiaoming Qian21-Aug-08 19:04 
AnswerRe: A COM Interop Question [modified] Pin
selcuks20-Aug-08 22:54
selcuks20-Aug-08 22:54 
GeneralRe: A COM Interop Question Pin
JoeRip21-Aug-08 2:26
JoeRip21-Aug-08 2:26 
Questionhi friends I need help Pin
Denver Thomas20-Aug-08 21:03
Denver Thomas20-Aug-08 21:03 
AnswerRe: hi friends I need help Pin
Christian Graus20-Aug-08 21:18
protectorChristian Graus20-Aug-08 21:18 
GeneralRe: hi friends I need help Pin
Denver Thomas20-Aug-08 21:52
Denver Thomas20-Aug-08 21:52 
GeneralRe: hi friends I need help Pin
Christian Graus20-Aug-08 22:29
protectorChristian Graus20-Aug-08 22:29 
GeneralRe: hi friends I need help Pin
Denver Thomas21-Aug-08 0:18
Denver Thomas21-Aug-08 0:18 
QuestionSQL srver 2000 and C# Connection error Pin
Gulfaraz20-Aug-08 20:52
Gulfaraz20-Aug-08 20:52 
AnswerRe: SQL srver 2000 and C# Connection error Pin
Blue_Boy20-Aug-08 21:12
Blue_Boy20-Aug-08 21:12 

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.