• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to depart a file into two file?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to depart a file ,create two new files ,and modify a file's name


the file format follows

%CDM-ORD
SMS: 唐山
CODE: 03150001
DATE: 2004-05-17

<Order id="ORD2004051700000018" subid="8919981" cardno="8019002928332838" cas="TFCA">
<Product code="30101"/>
<Product code="30102"/>
</Order>

<Order id="ORD2004051700000019" subid="8919982" cardno="8019002929837100" cas="TFCA">
<Product code="30101"/>
<Product code="30102"/>
</Order>

<Delorder id="DOR2004051700000020" subid="8919982" cardno="8019002929837100" cas="TFCA">
<Product code="30100"/>
</Delorder>
.....................................

I need to get a xml file and other file from above file,How to do ?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This assignment looks very similar to your previous two assignments.
Since the only way to learn how to program is to write code, we ask that you Do Your Own Homework. Show us some code and ask specific questions so we know you've put some effort into solving the problem on your own.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic