• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to depart a file into two file?

 
John Smith
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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 ?
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!