Topic
Import Text File content in an Array
Startseite ' Community ' Automation and VBA ' Import Text File content in an Array
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 11 Jahren, 3 Monaten von HerveM1234 aktualisiert.
Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
-
AutorBeiträge
-
13.02.2014 um 10:58 Uhr #35162HerveM1234Teilnehmer
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
13.02.2014 um 10:58 Uhr #35164HerveM1234TeilnehmerHi,
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
14.02.2014 um 09:29 Uhr #35163Bernhard KantzTeilnehmerReading 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.
-
AutorBeiträge
Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.