# Can Pega read a local file without importing it to the server?

**URL:** <https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686>\
**Category:** User Experience\
**Tags:** enterprise-application-development, 8-6-1, 8-6, system-administration, 8-6-6, user-experience, data-model, system-architect, case-management\
**Created:** [June 28, 2023, 10:08am UTC](https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686 "2023-06-28T10:08:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_MG](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@Karthik\_MG](https://forums.pega.com/u/Karthik_MG)\
**Post date:** [June 28, 2023, 10:08am UTC](https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686/1 "2023-06-28T10:08:15Z")

</div>

Hi  
Can Pega read a local file without importing it to the server?

---

<div class="post-metadata">

**Author:** ![basmasking](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/basmasking/32/6185_2.png) [@basmasking](https://forums.pega.com/u/basmasking)\
**Post date:** [June 29, 2023, 4:35am UTC](https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686/2 "2023-06-29T04:35:53Z")

</div>

@Karthik.MG

Could you maybe explain a bit more what you are trying to achieve and what action you are trying to do? Do you want to import a RAP file? Do you need to create a REST connection based on a result file, etc?

---

<div class="post-metadata">

**Author:** ![Karthik\_MG](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@Karthik\_MG](https://forums.pega.com/u/Karthik_MG)\
**Post date:** [July 10, 2023, 7:27am UTC](https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686/3 "2023-07-10T07:27:34Z")

</div>

@BasM7674 No, I don’t have specific requirement. I Just want to know how to read Local system file using Pega rule without Importing the file. (exp: text file)

---

<div class="post-metadata">

**Author:** ![basmasking](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/basmasking/32/6185_2.png) [@basmasking](https://forums.pega.com/u/basmasking)\
**Post date:** [July 10, 2023, 12:00pm UTC](https://forums.pega.com/t/can-pega-read-a-local-file-without-importing-it-to-the-server/4686/4 "2023-07-10T12:00:07Z")

</div>

@Karthik.MG

You can use a file listener to read a local file (on the disk mounted to the machine). You can point it to a direction, let it read the file and define what you want to do with the file in the processing part.

A dataset can also read local files (in a repository). The dataset can be imported in a data flow to process the file further.

You could also use the Java api (both mounted to the machine as repositories) and build a custom piece of functionality, but that solution is non-rule related.
