Text files, merge lines

kenneth73kenneth73 Member Posts: 59
edited 2014-10-21 in NAV Three Tier
Hi

I have 3 text files, I want to merge to one.
Like this :

Textfile 1 :
- Line1 : TEXT_Line1_01;
- Line2 : TEXT_Line2_01;

Textfile 2 :
- Line1 : TEXT_Line1_02;
- Line2 : TEXT_Line2_02;

Textfile 3 :
- Line1 : TEXT_Line1_03;
- Line2 : TEXT_Line2_03;

The New file :
TEXT_Line1_01;TEXT_Line1_02;TEXT_Line1_03;
TEXT_Line2_01;TEXT_Line2_02;TEXT_Line2_03;

It would be nice if it can be called with parameters : file1, file2, file 3

Thanks

Regards Kenneth Jessen

Answers

  • tinoruijstinoruijs Member Posts: 1,226
    Is this for one time only? Then I would probably use Excel.
    What the needed functionality? Can you describe more?

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • kenneth73kenneth73 Member Posts: 59
    It gonna be used several times.

    It has to be some sort of code inside nav.
    I have a codeunit that creates the files.
    Then, in the same run, I Will have the merge function. :)
  • tinoruijstinoruijs Member Posts: 1,226
    Why don't you directly create one file from NAV? When all data is in NAV, it seems the easiest solution.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • kenneth73kenneth73 Member Posts: 59
    Because it is though an xmlport, and the 3 files uses different language.

    File1 : captions based on 1030
    File2 : captions based on 1031
    File3 : captions based on 1033

    And I can't change language When running the xmlport
  • tinoruijstinoruijs Member Posts: 1,226
    All right. Clear.

    Perhaps you can take a look at this post for help about reading files: http://mibuso.com/forum/viewtopic.php?f=23&t=29313

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • thegunzothegunzo Member Posts: 274
    http://www.dynamics.is/?p=1405 could help you.

    Thee files = three arrays
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.