Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can't run my app!! Pin
Nish Nishant8-May-02 7:56
sitebuilderNish Nishant8-May-02 7:56 
GeneralRe: Can't run my app!! Pin
Nick Parker8-May-02 8:06
protectorNick Parker8-May-02 8:06 
GeneralRe: Can't run my app!! Pin
Nish Nishant8-May-02 8:12
sitebuilderNish Nishant8-May-02 8:12 
GeneralRe: Can't run my app!! Pin
Rickard Andersson208-May-02 8:07
Rickard Andersson208-May-02 8:07 
GeneralRe: Can't run my app!! Pin
ez28-May-02 8:12
ez28-May-02 8:12 
GeneralRe: Can't run my app!! Pin
Nish Nishant8-May-02 8:14
sitebuilderNish Nishant8-May-02 8:14 
QuestionException.. what? Pin
Rickard Andersson207-May-02 22:53
Rickard Andersson207-May-02 22:53 
AnswerRe: Exception.. what? Pin
James T. Johnson7-May-02 23:03
James T. Johnson7-May-02 23:03 
You need to check for line = null; before you look for the word. You put the check in at the bottom of the loop, but not before you use it Smile | :)

[Edit] If the idea of checking your break condition twice makes you uneasy you can do this

while(true)
{
  line = streamReader.ReadLine();
  
  if(line == null)  // break condition
    break;
 
  ....  // rest of the loop
}
[/Edit]

James

Simplicity Rules!
GeneralRe: Exception.. what? Pin
Christian Graus8-May-02 12:36
protectorChristian Graus8-May-02 12:36 
GeneralRe: Exception.. what? Pin
Nick Parker8-May-02 12:41
protectorNick Parker8-May-02 12:41 
GeneralRe: Exception.. what? Pin
Christian Graus8-May-02 12:43
protectorChristian Graus8-May-02 12:43 
GeneralRe: Exception.. what? Pin
Rama Krishna Vavilala8-May-02 12:46
Rama Krishna Vavilala8-May-02 12:46 
GeneralRe: Exception.. what? Pin
Christian Graus8-May-02 12:54
protectorChristian Graus8-May-02 12:54 
GeneralRe: Exception.. what? Pin
Nick Parker8-May-02 16:09
protectorNick Parker8-May-02 16:09 
AnswerRe: Exception.. what? Pin
Daniel Turini7-May-02 23:04
Daniel Turini7-May-02 23:04 
GeneralRe: Exception.. what? Pin
Rickard Andersson208-May-02 1:58
Rickard Andersson208-May-02 1:58 
GeneralRe: Exception.. what? Pin
Daniel Turini8-May-02 4:01
Daniel Turini8-May-02 4:01 
GeneralRe: Exception.. what? Pin
Rickard Andersson208-May-02 4:42
Rickard Andersson208-May-02 4:42 
GeneralEXE Creating Pin
BLaZiNiX7-May-02 17:17
BLaZiNiX7-May-02 17:17 
GeneralRe: EXE Creating Pin
Nick Parker7-May-02 17:51
protectorNick Parker7-May-02 17:51 
Questionhow to realize that? Pin
zhoujun7-May-02 14:21
zhoujun7-May-02 14:21 
AnswerRe: how to realize that? Pin
James T. Johnson7-May-02 14:41
James T. Johnson7-May-02 14:41 
GeneralRe: how to realize that? Pin
zhoujun7-May-02 19:28
zhoujun7-May-02 19:28 
GeneralRe: how to realize that? Pin
Rickard Andersson207-May-02 22:44
Rickard Andersson207-May-02 22:44 
GeneralRe: how to realize that? Pin
James T. Johnson7-May-02 23:08
James T. Johnson7-May-02 23:08 

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.