Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
QuestionCan you add a SYSTEM dtd with CreateDocumentType ? Pin
Bart7Simpson75-Nov-06 11:00
Bart7Simpson75-Nov-06 11:00 
Questionreplace value in XML file Pin
peterchen5-Nov-06 10:49
peterchen5-Nov-06 10:49 
AnswerRe: replace value in XML file Pin
Steve Echols5-Nov-06 11:46
Steve Echols5-Nov-06 11:46 
GeneralRe: replace value in XML file Pin
peterchen6-Nov-06 20:58
peterchen6-Nov-06 20:58 
GeneralRe: replace value in XML file Pin
Steve Echols6-Nov-06 21:35
Steve Echols6-Nov-06 21:35 
AnswerRe: replace value in XML file Pin
Bart7Simpson75-Nov-06 11:57
Bart7Simpson75-Nov-06 11:57 
QuestionCan BinaryWriter write strings? Pin
Lord Kixdemp5-Nov-06 10:21
Lord Kixdemp5-Nov-06 10:21 
AnswerRe: Can BinaryWriter write strings? Pin
Guffa5-Nov-06 10:46
Guffa5-Nov-06 10:46 
When the BinaryWriter writes the string to the file, it does so in a format so that the string can be read again. To know how to read the string, it has to write the length of the string before the characters in the string.

If you just want to write the characters in the string, you have to do exactly as you have done; writing them as an array of characters.

I can't think of any other data type that is handled the same way, but if it can be of variable size, the size has of course be included when it's written to the stream.


---
b { font-weight: normal; }

GeneralRe: Can BinaryWriter write strings? Pin
Lord Kixdemp5-Nov-06 13:01
Lord Kixdemp5-Nov-06 13:01 
GeneralRe: Can BinaryWriter write strings? Pin
Guffa5-Nov-06 13:52
Guffa5-Nov-06 13:52 
QuestionAttempted to read and write protected memory Pin
Nadia Monalisa5-Nov-06 7:55
Nadia Monalisa5-Nov-06 7:55 
AnswerRe: Attempted to read and write protected memory Pin
Rob Graham5-Nov-06 8:06
Rob Graham5-Nov-06 8:06 
AnswerRe: Attempted to read and write protected memory Pin
kahkaha5-Nov-06 8:32
kahkaha5-Nov-06 8:32 
GeneralRe: Attempted to read and write protected memory Pin
Nadia Monalisa5-Nov-06 8:46
Nadia Monalisa5-Nov-06 8:46 
QuestionOposite / Inverse Color Pin
TeamWild5-Nov-06 7:07
TeamWild5-Nov-06 7:07 
AnswerRe: Oposite / Inverse Color Pin
Insincere Dave5-Nov-06 7:19
Insincere Dave5-Nov-06 7:19 
AnswerRe: Oposite / Inverse Color Pin
Guffa5-Nov-06 7:33
Guffa5-Nov-06 7:33 
GeneralRe: Oposite / Inverse Color Pin
Amar Chaudhary5-Nov-06 23:28
Amar Chaudhary5-Nov-06 23:28 
Questionoverride Pin
wanlim08175-Nov-06 5:47
wanlim08175-Nov-06 5:47 
AnswerRe: override Pin
Vega025-Nov-06 9:21
Vega025-Nov-06 9:21 
Questionreading from a file Pin
arjunsasikumar5-Nov-06 4:04
arjunsasikumar5-Nov-06 4:04 
AnswerRe: reading from a file Pin
User 66585-Nov-06 4:44
User 66585-Nov-06 4:44 
AnswerRe: reading from a file Pin
Stefan Troschuetz5-Nov-06 4:44
Stefan Troschuetz5-Nov-06 4:44 
Questiondll AccessViolation Pin
ilmarga5-Nov-06 3:51
ilmarga5-Nov-06 3:51 
AnswerRe: dll AccessViolation Pin
Rob Graham5-Nov-06 5:09
Rob Graham5-Nov-06 5:09 

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.