Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jmokHi Laura,
Thanks for the question. What type of files are they?
There are two parts to this. The first part is to acquire the files and the second is to read the records from the files.
First part
To bring in multiple files of the same type, you can use the Directory List node. You will need to enter the folder location of where the files are saved and also a file pattern that Lavastorm will use to acquire the files.
For example, if the files you are acquiring are called:
- Lavastorm-030717.csv
- Lavastorm-040717.csv
- Lavastorm-050717.csv
You could use the naming pattern:
Lavastorm-*.csv. The asterisk is the wildcard sign in Lavastorm. This will read in the multiple files and you should be able to see the file names in the output.
Second part
The second part is to read in the records from the files. To do this you'll want to attach the appropriate node to read in the type of files i.e. if you are trying to acquire CSV file, use a CSV File node. Connect the node to the Directory List node and in the
FilenameExpr parameter, enter the input field that contains the file names. In this case, the input field name is called
FileName. Run the node.
You should see all records from all files. If you have any issues/questions, please let us know.