# Read data from the .properties file using Placeholders

**URL:** <https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194>\
**Category:** Libraries\
**Created:** [February 15, 2022, 6:00pm UTC](https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194 "2022-02-15T18:00:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathishreddy.sr123](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sathishreddy.sr123](https://discuss.kotlinlang.org/u/sathishreddy.sr123)\
**Post date:** [February 15, 2022, 6:00pm UTC](https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194/1 "2022-02-15T18:00:46Z")

</div>

Is there any way to read data from the .properties file and using in functions by using any placeholders.  
suppose:  
var value : String = // i want to read this value from .properties file which is there in resource folder

---

<div class="post-metadata">

**Author:** ![Meodinger](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/meodinger/32/9028_2.png) [@Meodinger](https://discuss.kotlinlang.org/u/Meodinger)\
**Post date:** [February 21, 2022, 1:41pm UTC](https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194/2 "2022-02-21T13:41:51Z")

</div>

I don’t think there is such thing. May the modifier `lateinit` helps you.
