How to read files inside a folder
Learn how to read files using File Reader connector on the Digibee Integration Platform.
Last updated
Was this helpful?
Learn how to read files using File Reader connector on the Digibee Integration Platform.
Last updated
Was this helpful?
Was this helpful?
Let's say you have a file named "file.txt"
inside "folder"
, available in your pipeline.
To read this file inside a folder, you may use a File Reader that indicates the path "folder/file.txt". That way, you can access the file 'file.txt'.
Follow the steps below to learn how to do it:
Create a pipeline and add a File Reader.
Open the configuration form of the connector.
Define the File Name parameter as "folder/file.txt"
.
Click Confirm to save the connector settings.
Connect the trigger to the File Reader.
Run a test in the pipeline (CTRL + ENTER).
The result will be shown:
{
"data": [
"my sample content"
],
"fileName": "folder/file.txt",
"lineCount": 1
}
data: array with the content of the file read by File Reader.
fileName: shows the complete path of the read file.
lineCount: identifies the amount of lines within the file read by File Reader.