Importing from text-files

RainerRainer Member Posts: 103
Should be VERY simple but I import from a textfile where I just want to read line by line bye line, nothing else.

That means read a long text from file and put this text into a variable.

The problem is, excatly when a empty line is in the file, the import stops.

Any body knowsa how?

Importline a - here is some text.. ksah dkjh daksjdh
Importline b - here is some more text.. ksah dkjh daksjdh
Importline c - here is some text.. ksah dkjh daksjdh qæl
<empty> <- stops the import
Importline e - here is some text.. ksah dkjh daksjdh

Hope to get answere from someone..
Kind Regards

E-mail: info@rainerbay.dk
Skype: rainerbaydk

Comments

  • hawwahawwa Member Posts: 106
    By default, the DataItemSeparator of a dataport is set to <<NewLine><NewLine>>.

    This means that after two <<NewLine>>, Navision expects to run a a new DataItem. If no subsequent dataitem is found, Navision will stop processing the dataport.
  • RainerRainer Member Posts: 103
    That sound simple, I try - thanks
    Kind Regards

    E-mail: info@rainerbay.dk
    Skype: rainerbaydk
Sign In or Register to comment.