Hello, i created a dataport to import a text file. Problem is that this process has to be automated through NAS. Nas doesn't support dataport so i have to create a codeunit to import the text file. This is rather new for me. Can anyone give me some info/code how to read in a text file through codeunit. Kind regards
0
Comments
A report has no advantages. Best use a codeunit.
Best use tab separated. It is safer than ","-separated.
The code is something like this:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
But a report has an advantage, it can be run from the "start-search" (or run depending on version) to run a link like [url=navision://.....]navision://.....[/url], a codeunit does not have that option. (for the rest indeed no advantages)
|To-Increase|
An even better separator is "MAHABHARATA" in the hope no one stores info from Hindu religion in NAV.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
2;2;2;2;2
so the field delimiter is ; and record delimiter is newline but how to solve the new line so that is is been seen as a new record?