The best way to work with files and folders

Hello, what is the best way to work with files and folders?

I'm trying to access to folder and open a txt file, readt it ecc.There is a best prectice?

Thank you 

  Discussion posts and replies are publicly visible

Parents
  • You can use any utility to navigate through directories and read files provided by Java. For example, the Path class, Apache FileUtils Package ( commons.apache.org/.../FileUtils.html ), FileInputStream class, etc.

    As far as Appian RPA is concerned, you should consider two things:

    - If your item are files inside a directory, you can use the class IJidokaFileProvider to iterate in it, a get a file in each iteration.

    - If you have several resources with the same permissions, it is possible that your robot runs each time in a different resource. So we do not recommend to have an input file pointing to absolute paths. The content may be different in each resource, or the file may not exist in one of them. Therefore, you have to consider the possibility of including those files as support files or as instructions. So that in each execution, the server sends the files to the resource where it is going to be executed.

Reply
  • You can use any utility to navigate through directories and read files provided by Java. For example, the Path class, Apache FileUtils Package ( commons.apache.org/.../FileUtils.html ), FileInputStream class, etc.

    As far as Appian RPA is concerned, you should consider two things:

    - If your item are files inside a directory, you can use the class IJidokaFileProvider to iterate in it, a get a file in each iteration.

    - If you have several resources with the same permissions, it is possible that your robot runs each time in a different resource. So we do not recommend to have an input file pointing to absolute paths. The content may be different in each resource, or the file may not exist in one of them. Therefore, you have to consider the possibility of including those files as support files or as instructions. So that in each execution, the server sends the files to the resource where it is going to be executed.

Children