FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Import Text File content in an Array

Home page Community Automation and VBA Import Text File content into an Array

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35162
    HerveM1234
    Participant

    Hi,

    Is there an easy way to import the content of a text file in an array variable.
    The text file contains strings separated by “CR”.

    Thanks

    RV

    #35164
    HerveM1234
    Participant

    Hi,

    Is there an easy way to import the content of a text file in an array variable.
    The text file contains strings separated by “CR”.

    Thanks

    RV

    #35163
    Bernhard Kantz
    Participant

    Reading text file via VBA is no FlexPro Automation specific topic. But you can read such a file using a FPScript formula like

    [code]ReadTextFile(“D:\tmp\example.txt”, 0n, 0n, 1n, 1n, FALSE, TYPE_STRING, TRUE, “n”, FALSE)
    [/code]

    This expression generates a dataset of strings, each entry representing a line in the text read.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.