Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling a procedure on a loaded form Pin
Stefan Troschuetz12-Jan-05 23:13
Stefan Troschuetz12-Jan-05 23:13 
GeneralRe: Calling a procedure on a loaded form Pin
Colin Angus Mackay12-Jan-05 23:16
Colin Angus Mackay12-Jan-05 23:16 
GeneralSystem.String - Reference Type Pin
zecodela12-Jan-05 22:38
zecodela12-Jan-05 22:38 
GeneralRe: System.String - Reference Type Pin
Sujith S12-Jan-05 23:03
Sujith S12-Jan-05 23:03 
GeneralRe: System.String - Reference Type Pin
Stefan Troschuetz12-Jan-05 23:06
Stefan Troschuetz12-Jan-05 23:06 
GeneralRe: System.String - Reference Type Pin
Adam Goossens13-Jan-05 0:32
Adam Goossens13-Jan-05 0:32 
GeneralC# with XML Pin
Newbie_Toy12-Jan-05 22:09
Newbie_Toy12-Jan-05 22:09 
GeneralRe: C# with XML Pin
Adam Goossens13-Jan-05 0:41
Adam Goossens13-Jan-05 0:41 
Hi,

Instead of using a TextWriter()-derived class to write the XML to the file (I assume you're using a System.IO.StringWriter or an equivalent, since System.IO.TextWriter is abstract) try using something like System.Xml.XmlDocument. That will load an entire XML document into memory for you and allow you to manipulate it at will. You can add your new element and save the document to disk again.

If you want to stick with a Stream, however, have a look at the System.IO.File.AppendText method. That will create a new StreamWriter that appends text to the file.

This space for rent!
My Blog
GeneralC# operator overloading Pin
ting66812-Jan-05 22:01
ting66812-Jan-05 22:01 
GeneralRe: C# operator overloading Pin
Stefan Troschuetz12-Jan-05 22:34
Stefan Troschuetz12-Jan-05 22:34 
GeneralRe: C# operator overloading Pin
J4amieC13-Jan-05 2:48
J4amieC13-Jan-05 2:48 
GeneralRe: C# operator overloading Pin
turbochimp13-Jan-05 3:06
turbochimp13-Jan-05 3:06 
Generalhelp on openwith dialog Pin
deepakskumar12-Jan-05 21:17
deepakskumar12-Jan-05 21:17 
GeneralRe: help on openwith dialog Pin
Adam Goossens13-Jan-05 0:44
Adam Goossens13-Jan-05 0:44 
GeneralBackColor for MainMenu Pin
hybrid7912-Jan-05 19:39
hybrid7912-Jan-05 19:39 
Generalproblem with fontdialog Pin
The Nemesis12-Jan-05 19:33
The Nemesis12-Jan-05 19:33 
GeneralSmartClient Pin
IamADotNetGuy12-Jan-05 18:44
IamADotNetGuy12-Jan-05 18:44 
GeneralRe: SmartClient Pin
Michael P Butler13-Jan-05 9:04
Michael P Butler13-Jan-05 9:04 
Generalbinary file reading and converting Pin
bwagz12-Jan-05 18:19
bwagz12-Jan-05 18:19 
Generalerror in this c# program Pin
dhol12-Jan-05 17:55
dhol12-Jan-05 17:55 
GeneralRe: error in this c# program Pin
leppie12-Jan-05 21:49
leppie12-Jan-05 21:49 
GeneralRe: error in this c# program Pin
dhol13-Jan-05 1:03
dhol13-Jan-05 1:03 
GeneralRe: error in this c# program Pin
leppie13-Jan-05 4:57
leppie13-Jan-05 4:57 
GeneralRe: error in this c# program Pin
dhol13-Jan-05 16:52
dhol13-Jan-05 16:52 
GeneralChange image property of a picturebox object at run time Pin
Einar Kvandahl12-Jan-05 15:45
Einar Kvandahl12-Jan-05 15:45 

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.