Click here to Skip to main content
15,904,935 members
Home / Discussions / C#
   

C#

 
AnswerRe: Setup File Pin
Dalek Dave11-Mar-11 13:52
professionalDalek Dave11-Mar-11 13:52 
QuestionFinding controls [modified] Pin
Orcun Iyigun11-Mar-11 7:02
Orcun Iyigun11-Mar-11 7:02 
AnswerRe: Finding controls Pin
OriginalGriff11-Mar-11 9:09
mveOriginalGriff11-Mar-11 9:09 
GeneralRe: Finding controls Pin
Orcun Iyigun11-Mar-11 9:50
Orcun Iyigun11-Mar-11 9:50 
AnswerRe: Finding controls Pin
GenJerDan11-Mar-11 11:26
GenJerDan11-Mar-11 11:26 
GeneralRe: Finding controls Pin
Orcun Iyigun11-Mar-11 11:32
Orcun Iyigun11-Mar-11 11:32 
GeneralRe: Finding controls Pin
GenJerDan11-Mar-11 14:44
GenJerDan11-Mar-11 14:44 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:18
sitebuilderLuc Pattyn11-Mar-11 18:18 
GeneralRe: Finding controls Pin
GenJerDan12-Mar-11 3:01
GenJerDan12-Mar-11 3:01 
AnswerRe: Finding controls Pin
Luc Pattyn12-Mar-11 3:16
sitebuilderLuc Pattyn12-Mar-11 3:16 
AnswerRe: Finding controls Pin
JOAT-MON11-Mar-11 12:28
JOAT-MON11-Mar-11 12:28 
AnswerRe: Finding controls Pin
Dalek Dave11-Mar-11 14:13
professionalDalek Dave11-Mar-11 14:13 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:16
sitebuilderLuc Pattyn11-Mar-11 18:16 
Questionstring.split question Pin
jashimu11-Mar-11 4:59
jashimu11-Mar-11 4:59 
AnswerRe: string.split question Pin
Luc Pattyn11-Mar-11 5:12
sitebuilderLuc Pattyn11-Mar-11 5:12 
AnswerRe: string.split question Pin
Dan Mos11-Mar-11 5:18
Dan Mos11-Mar-11 5:18 
AnswerRe: string.split question Pin
Dalek Dave11-Mar-11 5:19
professionalDalek Dave11-Mar-11 5:19 
AnswerRe: string.split question Pin
#realJSOP12-Mar-11 3:41
professional#realJSOP12-Mar-11 3:41 
QuestionXML File user output [modified] Pin
Pierre besquent10-Mar-11 23:27
Pierre besquent10-Mar-11 23:27 
AnswerRe: XML File user output Pin
Tarun.K.S10-Mar-11 23:55
Tarun.K.S10-Mar-11 23:55 
Good question.

Here is how i did. Suppose user selects the path like this :
C#
Path="C:\MyFile.xml";


Suppose you have an object of xmlDoc containing the xml.
So now we have to create a Filestream for the new path, and then use the StreamWriter class to write the xml to the new path.

C#
FileStream fs=new FileStream(path,FileMode.Create,FileAccess.ReadWrite);
StreamWriter sw=new StreamWriter(fs,Text.Encoding.UTF8);
sw.Write(xmlDoc.OuterXml);
sw.Close();
fs.Close();


Hope it helped! Smile | :)

People with high attitude deserve the standing ovation of our highest finger!

My Technical Blog![^]

GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 0:05
Pierre besquent11-Mar-11 0:05 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 0:08
Tarun.K.S11-Mar-11 0:08 
GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 4:28
Pierre besquent11-Mar-11 4:28 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 6:46
Tarun.K.S11-Mar-11 6:46 
GeneralRe: XML File user output Pin
Pierre besquent13-Mar-11 22:12
Pierre besquent13-Mar-11 22:12 

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.