Fixed lenght field Text file import

Alessandro_Zappia
Member Posts: 2
Hi everybody! I'd like to create a method to import a text file into a
table. The fields in this file has different types of data (int, real,
string) and are fixed lenght, with no separators char between the
fields. It doesn't seem possible using the read method of an IO class
(AsciiIO or BinaryIO, and so on..). Am I wrong? Any suggestions?
Thank you very very much!
table. The fields in this file has different types of data (int, real,
string) and are fixed lenght, with no separators char between the
fields. It doesn't seem possible using the read method of an IO class
(AsciiIO or BinaryIO, and so on..). Am I wrong? Any suggestions?
Thank you very very much!
0
Comments
-
Hi,
It would be easier if there are indicators between fields - any special character would do.
To get inspiration probably you might want to refer this -
http://www.harishm.com/Navision/Code.html
Hope this helps and good luck with your import,
Harish MohanbabuHarish Mohanbabu
Long way to go before I sleep..0 -
thanks to the code, it's useful to me0
-
Hi All,
I belive the issue of Alessandro is still to be addresed, like he is telling that he doesn't have any field seperator so there is a work around. Imoport the text filed as on text field and than as the field length is going to be fixed so through string manipulation functions we can identify the various data's.
I belive this is a good way to address a string problem as axapta has very nice string manipulation functions.
Bye
Kgaurav =D>0
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