Click here to Skip to main content
16,007,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: Collision Help (XNA) : Please Help! Pin
Luc Pattyn25-Feb-08 11:38
sitebuilderLuc Pattyn25-Feb-08 11:38 
GeneralRe: Collision Help (XNA) : Please Help! Pin
MasterSharp25-Feb-08 11:58
MasterSharp25-Feb-08 11:58 
GeneralRe: Collision Help (XNA) : Please Help! Pin
Luc Pattyn25-Feb-08 12:02
sitebuilderLuc Pattyn25-Feb-08 12:02 
GeneralRe: Collision Help (XNA) : Please Help! Pin
MasterSharp25-Feb-08 12:19
MasterSharp25-Feb-08 12:19 
GeneralRe: Collision Help (XNA) : Please Help! Pin
Mark Churchill25-Feb-08 19:02
Mark Churchill25-Feb-08 19:02 
GeneralEncoding and the Streamreader Pin
KaptinKrunch25-Feb-08 10:18
KaptinKrunch25-Feb-08 10:18 
GeneralRe: Encoding and the Streamreader Pin
KaptinKrunch25-Feb-08 13:15
KaptinKrunch25-Feb-08 13:15 
GeneralRe: Encoding and the Streamreader Pin
Guffa25-Feb-08 14:17
Guffa25-Feb-08 14:17 
KaptinKrunch wrote:
changing the code to the listing below resolved my issue.


That means that the file is not at all Unicode, but ANSI.

KaptinKrunch wrote:
bytesRead = fStream.Read(buffer, 0, buffer.Length);


Ouch. You read from the file, but you ignore the result. The Read method doesn't have to read as much data as you request. You have to loop until all data is read, or the method return zero.

The easiest is of course to just replace all that code with:

string text = File.ReadAllText(sourceFiles[i].ToString(), Encoding.Default);

Despite everything, the person most likely to be fooling you next is yourself.

QuestionHow to get a file from a folder Pin
Exelioindia25-Feb-08 9:31
Exelioindia25-Feb-08 9:31 
AnswerRe: How to get a file from a folder Pin
pmarfleet25-Feb-08 9:37
pmarfleet25-Feb-08 9:37 
QuestionRe: How to get a file from a folder Pin
Exelioindia25-Feb-08 10:07
Exelioindia25-Feb-08 10:07 
AnswerRe: How to get a file from a folder Pin
KaptinKrunch25-Feb-08 10:29
KaptinKrunch25-Feb-08 10:29 
AnswerRe: How to get a file from a folder Pin
Gareth H25-Feb-08 10:04
Gareth H25-Feb-08 10:04 
GeneralRe: How to get a file from a folder Pin
Exelioindia25-Feb-08 10:28
Exelioindia25-Feb-08 10:28 
QuestionStatic Extension Methods? Pin
Skippums25-Feb-08 9:13
Skippums25-Feb-08 9:13 
GeneralRe: Static Extension Methods? Pin
Not Active25-Feb-08 9:27
mentorNot Active25-Feb-08 9:27 
GeneralRe: Static Extension Methods? Pin
Skippums25-Feb-08 9:38
Skippums25-Feb-08 9:38 
GeneralRe: Static Extension Methods? Pin
Pete O'Hanlon25-Feb-08 9:48
mvePete O'Hanlon25-Feb-08 9:48 
GeneralRe: Static Extension Methods? Pin
Skippums25-Feb-08 9:54
Skippums25-Feb-08 9:54 
GeneralRe: Static Extension Methods? Pin
Mark Churchill25-Feb-08 19:05
Mark Churchill25-Feb-08 19:05 
GeneralRe: Static Extension Methods? Pin
Skippums26-Feb-08 4:51
Skippums26-Feb-08 4:51 
QuestionWhat does it mean Pin
netJP12L25-Feb-08 7:53
netJP12L25-Feb-08 7:53 
AnswerRe: What does it mean Pin
led mike25-Feb-08 8:11
led mike25-Feb-08 8:11 
GeneralParsing a custom date string to a DateTime Object Pin
Sunset Towers25-Feb-08 6:48
Sunset Towers25-Feb-08 6:48 
GeneralRe: Parsing a custom date string to a DateTime Object Pin
Gareth H25-Feb-08 7:33
Gareth H25-Feb-08 7:33 

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.