# Config tree usage

**URL:** <https://forum.legato.io/t/config-tree-usage/4222>\
**Category:** Uncategorized\
**Created:** [March 24, 2019, 1:31pm UTC](https://forum.legato.io/t/config-tree-usage/4222 "2019-03-24T13:31:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [March 24, 2019, 1:31pm UTC](https://forum.legato.io/t/config-tree-usage/4222/1 "2019-03-24T13:31:09Z")

</div>

I would like to use config tree mechanism as a replacement for database

please advice how to include a basic config tree in the application (API’s do not show how to place a preconfigured config tree file )

---

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [April 11, 2019, 1:14pm UTC](https://forum.legato.io/t/config-tree-usage/4222/2 "2019-04-11T13:14:13Z")

</div>

Hello @deadpoolcode,  
I have attached the sample application[configTest.zip](https://forum.legato.io/uploads/short-url/8ICInjV61FBIwagomugeYoGvAfP.zip) (4.5 KB)  
, Which shows how to create(set) the config tree, Read the data from the config tree, delete the data etc.  
Also from the below of legato framewok, You can find the other sample application related to config tree API usage.  
apps/test/framework/configTree

Hope this is what you were looking for, Let us know if you have any questions.

Regards,  
Muralidhara N.

---

<div class="post-metadata">

**Author:** ![deadpoolcode](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/deadpoolcode/32/382_2.png) [@deadpoolcode](https://forum.legato.io/u/deadpoolcode)\
**Post date:** [April 11, 2019, 4:00pm UTC](https://forum.legato.io/t/config-tree-usage/4222/3 "2019-04-11T16:00:53Z")

</div>

thank you, I have looked for a way to include it in the adef file, but i already have a solution that use import\export from external file, works great!
