Forum FlexPro – Discuss your topic!

Import Text File content in an Array

Accueil > Community > Automation and VBA > Import Text File content in an Array

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12846
    HerveM1234HerveM1234
    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

    #8506
    HerveM1234HerveM1234
    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

    #9342
    Bernhard KantzBernhard 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

    ReadTextFile("D:\\tmp\\example.txt", 0n, 0n, 1n, 1n, FALSE, TYPE_STRING, TRUE, "\n", FALSE)
    

    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.