Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Registry Keys Pin
harold aptroot7-Jul-10 11:20
harold aptroot7-Jul-10 11:20 
QuestionDesktop application and MS Outlook SSO Pin
Etienne_1236-Jul-10 11:06
Etienne_1236-Jul-10 11:06 
QuestionEmpty FileStream Pin
Shaareable6-Jul-10 9:41
Shaareable6-Jul-10 9:41 
AnswerRe: Empty FileStream Pin
Richard MacCutchan6-Jul-10 10:22
mveRichard MacCutchan6-Jul-10 10:22 
GeneralRe: Empty FileStream Pin
Shaareable6-Jul-10 10:24
Shaareable6-Jul-10 10:24 
AnswerRe: Empty FileStream Pin
Luc Pattyn6-Jul-10 10:38
sitebuilderLuc Pattyn6-Jul-10 10:38 
GeneralRe: Empty FileStream Pin
Shaareable7-Jul-10 3:34
Shaareable7-Jul-10 3:34 
AnswerRe: Empty FileStream Pin
William Winner6-Jul-10 11:51
William Winner6-Jul-10 11:51 
If fs.length is 0, then there's nothing in your file.

And I want to point out something Luc said. Your while loop is an infinite loop. You never change munching, so munching will always be true.

Also, while we're talking about it...you don't need to test a boolean against a value within a while loop. You're simply adding an extra test that is unnecessary.

C#
while (munching)


is the same as

C#
while (munching == true)


and uses one less evaluation. If you want to test against false, you would write

C#
while (!munching)

GeneralRe: Empty FileStream Pin
Shaareable7-Jul-10 3:34
Shaareable7-Jul-10 3:34 
QuestionBinding treeview to an array Pin
LordZoster6-Jul-10 5:27
LordZoster6-Jul-10 5:27 
AnswerRe: Binding treeview to an array Pin
The Man from U.N.C.L.E.6-Jul-10 8:09
The Man from U.N.C.L.E.6-Jul-10 8:09 
GeneralRe: Binding treeview to an array Pin
LordZoster6-Jul-10 10:10
LordZoster6-Jul-10 10:10 
QuestionHow to convert an 8 bit based binary file inside a richtextbox Pin
Shaareable6-Jul-10 4:12
Shaareable6-Jul-10 4:12 
AnswerRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Richard MacCutchan6-Jul-10 5:01
mveRichard MacCutchan6-Jul-10 5:01 
GeneralRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Shaareable6-Jul-10 5:31
Shaareable6-Jul-10 5:31 
GeneralRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Richard MacCutchan6-Jul-10 6:40
mveRichard MacCutchan6-Jul-10 6:40 
GeneralRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Shaareable6-Jul-10 7:44
Shaareable6-Jul-10 7:44 
GeneralRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Richard MacCutchan6-Jul-10 10:15
mveRichard MacCutchan6-Jul-10 10:15 
GeneralRe: How to convert an 8 bit based binary file inside a richtextbox Pin
Shaareable6-Jul-10 10:21
Shaareable6-Jul-10 10:21 
Questionset html color code to forecolor Pin
prasadbuddhika6-Jul-10 2:34
prasadbuddhika6-Jul-10 2:34 
AnswerRe: set html color code to forecolor Pin
Luc Pattyn6-Jul-10 3:14
sitebuilderLuc Pattyn6-Jul-10 3:14 
AnswerRe: set html color code to forecolor Pin
Richard Blythe6-Jul-10 13:18
Richard Blythe6-Jul-10 13:18 
QuestionStored Procedure Question Pin
Hum Dum5-Jul-10 22:32
Hum Dum5-Jul-10 22:32 
AnswerRe: Stored Procedure Question Pin
Peace ON5-Jul-10 23:16
Peace ON5-Jul-10 23:16 
AnswerRe: Stored Procedure Question Pin
J4amieC6-Jul-10 0:37
J4amieC6-Jul-10 0:37 

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.