How to read files inside a folder

Learn how to read files using File Reader connector on the Digibee Integration Platform.

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:

  1. Create a pipeline and add a File Reader.

  2. Open the configuration form of the connector.

  3. Define the File Name parameter as "folder/file.txt".

  4. Click Confirm to save the connector settings.

  5. Connect the trigger to the File Reader.

  6. 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.

Last updated

Was this helpful?