Click here to Skip to main content
15,913,570 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#/.NET Versioning Pin
Heath Stewart23-Aug-04 9:17
protectorHeath Stewart23-Aug-04 9:17 
GeneralC# COM call with Optional Parameter Pin
rgondzur23-Aug-04 4:32
rgondzur23-Aug-04 4:32 
GeneralRe: C# COM call with Optional Parameter Pin
rgondzur23-Aug-04 4:34
rgondzur23-Aug-04 4:34 
GeneralRe: C# COM call with Optional Parameter Pin
Nick Parker23-Aug-04 5:35
protectorNick Parker23-Aug-04 5:35 
Generaltext files in xml Pin
Member 131560023-Aug-04 3:01
Member 131560023-Aug-04 3:01 
GeneralRe: text files in xml Pin
leppie23-Aug-04 3:54
leppie23-Aug-04 3:54 
GeneralRe: text files in xml Pin
David Salter23-Aug-04 4:04
David Salter23-Aug-04 4:04 
GeneralRe: text files in xml Pin
Heath Stewart23-Aug-04 5:59
protectorHeath Stewart23-Aug-04 5:59 
To expand on what Davey said, take a look at the XmlTextWriter class in the .NET Framework SDK documentation. It includes all the information you need to use it, as well as examples that should help you.

To iterate through your lines in the delimited text file, open the file in a StreamReader like so:
using (StreamReader reader = new StreamReader("file.txt"))
{
  string line = null;
  while ((line = reader.ReadLine()) != null)
    // Parse and save 'line' to an XML file.
}
Like Davey said, though, the schema of the XML file really depends on what you need.

 

Software Design Engineer
Developer Division Sustained Engineering, Microsoft
My Articles
GeneralRe: text files in xml Pin
Salil Khedkar23-Aug-04 19:59
Salil Khedkar23-Aug-04 19:59 
GeneralRe: text files in xml Pin
Salil Khedkar23-Aug-04 20:09
Salil Khedkar23-Aug-04 20:09 
Generalsign a xml document with a x509 certificate Pin
Escroto23-Aug-04 2:11
Escroto23-Aug-04 2:11 
GeneralRe: sign a xml document with a x509 certificate Pin
Heath Stewart23-Aug-04 5:56
protectorHeath Stewart23-Aug-04 5:56 
GeneralRe: sign a xml document with a x509 certificate Pin
Escroto24-Aug-04 0:10
Escroto24-Aug-04 0:10 
GeneralFacing problem while calling FOR EACH st. in vb from C# DLL Pin
Ami Shah23-Aug-04 2:06
Ami Shah23-Aug-04 2:06 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Colin Angus Mackay23-Aug-04 2:24
Colin Angus Mackay23-Aug-04 2:24 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Ami Shah23-Aug-04 2:37
Ami Shah23-Aug-04 2:37 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Colin Angus Mackay23-Aug-04 3:19
Colin Angus Mackay23-Aug-04 3:19 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Ami Shah23-Aug-04 3:34
Ami Shah23-Aug-04 3:34 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
Colin Angus Mackay23-Aug-04 4:03
Colin Angus Mackay23-Aug-04 4:03 
GeneralRe: Facing problem while calling FOR EACH st. in vb from C# DLL Pin
leppie23-Aug-04 4:02
leppie23-Aug-04 4:02 
GeneralDesigner - Components - Properties only visible in derived classes Pin
STW23-Aug-04 1:45
STW23-Aug-04 1:45 
GeneralRe: Designer - Components - Properties only visible in derived classes Pin
leppie23-Aug-04 4:00
leppie23-Aug-04 4:00 
GeneralRe: Designer - Components - Properties only visible in derived classes Pin
STW23-Aug-04 6:26
STW23-Aug-04 6:26 
QuestionC# Delete and Write specific data in a text file??? Pin
gman4423-Aug-04 1:07
gman4423-Aug-04 1:07 
AnswerRe: C# Delete and Write specific data in a text file??? Pin
leppie23-Aug-04 3:57
leppie23-Aug-04 3:57 

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.