FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Import Text File content in an Array

Startseite ' Community ' Automation and VBA ' Import Text File content in an Array

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #35162
    HerveM1234
    Teilnehmer

    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
    Teilnehmer

    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
    Teilnehmer

    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.

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.