Find and read text files

dolcinodolcino Member Posts: 3
Hi,

i would like to look (with a c/side code) if a Textfile exists in a surtain Directory and if yes, get the Name of it and open it for reading.

The practical use is to Import tracking numbers generated by a DPD application.

Any help will be very apreciated.

Kind regards
Urs Küng

Answers

  • imclever1205imclever1205 Member Posts: 94
    For which Navision version ?
    If 7.0 and higher you can use :
    System.Collections.Generic.List`1.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    System.Object.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    System.IO.Directory.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    System.IO.File.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    System.IO.Path.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
  • dolcinodolcino Member Posts: 3
    Version is 3.7.

    Meanwhile i have found the solution. I use the file table. first i couldn't find it, until i realised that it is only in the variable definitions visible.

    Thanks
    Urs
Sign In or Register to comment.