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

C#

 
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 
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 
Here's a guess as to what is happening.
The code that is creating the file runs and writes part of the file while keeping the file open. (I suspect it does this for each game.)
The code that you show is then triggered so it reads the file but only up to the point that has been written (i.e to end of first game.)
When you close the program the entire file is written so the next time you run it it works.

BTW regarding your use of ReadByte, you can use Seek to move about in the file (if it supports it) but this is probably only useful if the file contains fixed length 'records' with one record per line. I cannot see how this would be useful in the example file. Smile | :)

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

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 
AnswerRe: C# IP Scanner Pin
mrcooll15-Aug-09 22:43
mrcooll15-Aug-09 22:43 
GeneralRe: C# IP Scanner Pin
nhqlbaislwfiikqraqnm15-Aug-09 22:50
nhqlbaislwfiikqraqnm15-Aug-09 22:50 

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.