# How to paste data from file

**URL:** <https://forum.robotframework.org/t/how-to-paste-data-from-file/3867>\
**Category:** Robot Framework\
**Created:** [24 May 2022 13:12 UTC](https://forum.robotframework.org/t/how-to-paste-data-from-file/3867 "2022-05-24T13:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhurya](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@madhurya](https://forum.robotframework.org/u/madhurya)\
**Post date:** [24 May 2022 13:12 UTC](https://forum.robotframework.org/t/how-to-paste-data-from-file/3867/1 "2022-05-24T13:12:49Z")

</div>

Hi Everyone,

I want to paste data from a file into the text field, can you please suggest a way to do this?  
I could not find any keywords related to copy and paste functionality

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [24 May 2022 13:51 UTC](https://forum.robotframework.org/t/how-to-paste-data-from-file/3867/2 "2022-05-24T13:51:39Z")

</div>

Hi Madhurya,

If it’s just a text file [Get File](http://robotframework.org/robotframework/latest/libraries/OperatingSystem.html#Get%20File) will give you the contents of the text file as a variable that you can just pass to [Input Text](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Input%20Text) or similar.

would probably look something like this:

```python
${FileText}= Get File c:/path/to/mytextfile.txt
Input Text //textarea[@id="mytextfield"] ${FileText}

```

Dave.

---

<div class="post-metadata">

**Author:** ![madhurya](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@madhurya](https://forum.robotframework.org/u/madhurya)\
**Post date:** [27 May 2022 15:26 UTC](https://forum.robotframework.org/t/how-to-paste-data-from-file/3867/3 "2022-05-27T15:26:57Z")

</div>

It worked, Thank You Dave 🙂
