In the output file only the first line of the "root" file have to be written that is the level 0 of a structure. The next lines are the component that can link to the first line of the other files. This line doesn't be written in the output file. Infact in the previous example I have done a mistake.
Here is the example with some notes
filename: 0_IP_017.CSV <-- the "root" file
440Z0220-932§other information <-- This is the level 0 to insert int +o the final file 623Z5400-1§other information 623Z5400-1§other information 623Z5400-18other information 623Z5400-18§other information 623Z5400-3§other information 623Z5420-1301§other information 623Z5420-1307§other information 7010902H01§other information 7010900H01§other information 623Z5466-1013§other information 623Z5466-1015§other information 623Z5465-1039§other information 623Z5465-1041§other information 623Z5465-1001§other information 623Z5420-3301§other information 623Z5465-41§other information 623Z5462-1001§other information <-- this line has children in 1_623Z5 +465-1001.CSV 623Z5462-1003§other information <-- this line has children in 1_623Z5 +462-1003.CSV 7010902H01§other information 623Z5420-3307§other information B3-15838§other information 623Z5422-3307§other information

the leafs:
filename: 1_623Z5462-1003.CSV
623Z5462-1003§Other information <-- this line identifies the link with + the "root" file and has to not be written in the outpufile 623Z5468-1§Other information 623Z5468-9§Other information 623Z5468-7§Other information 623Z5468-5§Other information CA623Z5462-1003§Other information BACD40AC36B30§Other information 623Z5469-7§Other information 623Z5462-3§Other information

filename: 1_623Z5465-1001.CSV
623Z5465-1001§other information <-- this line identifies the link with + the "root" file and has to not be written in the outpufile 623Z5465-1§other information 623Z5465-11§other information CA623Z5465-1001§other information

and this is the model of the output file (hand made)
<code> 0 440Z0220-932§other information <-- this is the first line of the + "root file" 1 440Z0220-932§other information 1 623Z5400-1§other information 1 623Z5400-1§other information 1 623Z5400-18other information 1 623Z5400-18§other information 1 623Z5400-3§other information 1 623Z5420-1301§other information 1 623Z5420-1307§other information 1 7010902H01§other information 1 7010900H01other information 1 623Z5466-1013§other information 1 623Z5466-1015§other information 1 623Z5465-1039§other information 1 623Z5465-1041§other information 1 623Z5465-1001§other information 1 623Z5420-3301§other information 1 623Z5465-41§other information 1 623Z5462-1001§other information <-- this is the line that has chil +dren of level 2 2 623Z5465-1§other information <-- this is the second line of the + 1_623Z5465-1001.CSV file 2 623Z5465-11§other information 2 CA623Z5465-1001§other information <-- and this is the last line of t +he 1_623Z5465-1001.CSV file 1 623Z5462-1003§other information <-- here i continue to read the "r +oot" file 2 623Z5468-1§Other information <-- this is the second line of the + 1_623Z5462-1003.CSV 2 623Z5468-9§Other information 2 623Z5468-7§Other information 2 623Z5468-5§Other information 2 CA623Z5462-1003§Other information 2 BACD40AC36B30§Other information 2 623Z5469-7§Other information 2 623Z5462-3§Other information <-- and this is the last line of t +he 1_623Z5462-1003.CSV 1 7010902H01§other information <-- continue to read the "root" fi +le 1 623Z5420-3307§other information 1 B3-15838§other information 1 623Z5422-3307§other information

I hope I explained my problem better than yesterday.
Thanx in advance

In reply to Re^4: create a level csv by Paulux
in thread create a level csv by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.