Text files, merge lines

kenneth73
Member Posts: 59
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
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
0
Answers
-
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 specialist0 -
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.0 -
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 specialist0 -
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 xmlport0 -
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 specialist0 -
________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions