Thread: how to change a txt file to a xml one

  1. #1
    Registered User
    Join Date
    Nov 2003

    Question how to change a txt file to a xml one


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

    thank you

  2. #2
    Join Date
    Aug 2002
    Tucson, Arizona

    Look up information on file I/O in C#

    StreamReader Class (System.IO)

    StreamWriter Class (System.IO)

  3. #3
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Banks of the River Styx
    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, 02:46 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10: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