Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
QuestionAnnotations on screen Pin
Vijay Mudunuri15-Aug-09 22:54
Vijay Mudunuri15-Aug-09 22:54 
Questionstatic data members and methods Pin
Black Gen15-Aug-09 21:28
Black Gen15-Aug-09 21:28 
AnswerRe: static data members and methods Pin
OriginalGriff15-Aug-09 22:03
mveOriginalGriff15-Aug-09 22:03 
AnswerRe: static data members and methods Pin
Saksida Bojan15-Aug-09 22:09
Saksida Bojan15-Aug-09 22:09 
Questionadding PNG icons with tranparency to listview Pin
Muhammad Ahmed15-Aug-09 16:22
Muhammad Ahmed15-Aug-09 16:22 
AnswerRe: adding PNG icons with tranparency to listview Pin
Henry Minute16-Aug-09 3:19
Henry Minute16-Aug-09 3:19 
QuestionFileStream runtime issues (Updated) [modified] Pin
Mikey_H15-Aug-09 14:21
Mikey_H15-Aug-09 14:21 
AnswerRe: FileStream runtime issues Pin
Luc Pattyn15-Aug-09 14:38
sitebuilderLuc Pattyn15-Aug-09 14:38 
Hi,

I'm not sure why it would fail.
You should accept what gets returned by FileStream.ReadByte and check for <0 to detect end-of-file; maybe that holds a surprise.

Anyway, you can replace all the input code by a simple File.ReadAllBytes().

Furthermore, as the file seems to contain text only, why are you handling it as a binary file?
You could call ReadLine() on it; or even use File.ReadAllLines().

I suggest you spend some time reading up on the File class!

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: FileStream runtime issues [modified] Pin
Mikey_H15-Aug-09 14:59
Mikey_H15-Aug-09 14:59 
AnswerRe: FileStream runtime issues Pin
riced15-Aug-09 23:09
riced15-Aug-09 23:09 
GeneralRe: FileStream runtime issues Pin
Mikey_H15-Aug-09 23:22
Mikey_H15-Aug-09 23:22 
AnswerRe: FileStream runtime issues (Updated) Pin
riced16-Aug-09 0:18
riced16-Aug-09 0:18 
GeneralRe: FileStream runtime issues (Updated) Pin
Mikey_H16-Aug-09 1:44
Mikey_H16-Aug-09 1:44 
GeneralRe: FileStream runtime issues (Updated) Pin
riced16-Aug-09 2:32
riced16-Aug-09 2:32 
GeneralRe: FileStream runtime issues (Updated) Pin
Mikey_H16-Aug-09 12:48
Mikey_H16-Aug-09 12:48 
QuestionReading letters from an Image in C# Pin
Sumit_Ghosh15-Aug-09 12:41
Sumit_Ghosh15-Aug-09 12:41 
AnswerRe: Reading letters from an Image in C# Pin
Henry Minute15-Aug-09 13:24
Henry Minute15-Aug-09 13:24 
QuestionWeb Browser(C# + other .NET technologies) Pin
abhifanatic15-Aug-09 10:12
abhifanatic15-Aug-09 10:12 
AnswerRe: Web Browser(C# + other .NET technologies) Pin
Saksida Bojan15-Aug-09 10:29
Saksida Bojan15-Aug-09 10:29 
QuestionC# IP Scanner Pin
nhqlbaislwfiikqraqnm15-Aug-09 10:06
nhqlbaislwfiikqraqnm15-Aug-09 10:06 
AnswerRe: C# IP Scanner Pin
Saksida Bojan15-Aug-09 10:31
Saksida Bojan15-Aug-09 10:31 
GeneralRe: C# IP Scanner Pin
nhqlbaislwfiikqraqnm15-Aug-09 10:52
nhqlbaislwfiikqraqnm15-Aug-09 10:52 
GeneralRe: C# IP Scanner Pin
Saksida Bojan15-Aug-09 18:57
Saksida Bojan15-Aug-09 18:57 
GeneralRe: C# IP Scanner Pin
nhqlbaislwfiikqraqnm15-Aug-09 21:55
nhqlbaislwfiikqraqnm15-Aug-09 21:55 
GeneralRe: C# IP Scanner Pin
Saksida Bojan15-Aug-09 22:02
Saksida Bojan15-Aug-09 22:02 

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.