Topic
Import Text File content in an Array
Home page › Community › Automation and VBA › Import Text File content into an Array
- This topic has 2 replies and 2 voices and was last updated 11 years, 3 months ago ago by HerveM1234.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
13.02.2014 at 10:58 #35162HerveM1234Participant
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 at 10:58 #35164HerveM1234ParticipantHi,
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 at 09:29 #35163Bernhard KantzParticipantReading 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.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.