Topic
Import Text File content in an Array
Page d'accueil ' Communauté ' Automation et VBA ' Importer le contenu d'un fichier texte dans un tableau
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par HerveM1234, le il y a 11 années et 3 mois.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
-
AuteurMessages
-
13.02.2014 à 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 à 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 à 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.
-
AuteurMessages
Voir les messages de 3 - 1 à 3 (sur un total de 3)
- Vous devez être connecté pour répondre à ce sujet.