how to change a txt file to a xml one

This is a discussion on how to change a txt file to a xml one within the C# Programming forums, part of the General Programming Boards category; Hello is it possible to change a txt file to a xml file? if yes, will you plz tell me ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    177

    Question how to change a txt file to a xml one

    Hello

    is it possible to change a txt file to a xml file?
    if yes,
    will you plz tell me how?

    thank you
    arian

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,801
    Yes.

    Look up information on file I/O in C#

    StreamReader Class (System.IO)

    StreamWriter Class (System.IO)
    Woop?

  3. #3
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    It is only possibly if you have some mapping from the text file to the XML file. XML is just a description of how to build a file format, but it does not define a file format in and of itself. Additionally, your .txt file has a format that is known only to you. To do the conversion, you need to know:
    1) The format of your .txt file.
    2) The format of your XML.
    3) The conversion between the two.

    It feels like you don't really understand what XML is - read up it, and it should be clear why we cannot answer your question.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21