# Adding the contents of a text file to my code

Source: https://help.codestencil.com/faqs/adding-the-contents-of-a-text-file-to-my-code

**Question**: I want to add a text file's contents to a specific spot in my code generation cycle. How do I do that?

**Answer**: To achieve this, you need to take the following steps:

1. **Create an expander** -  The expander type should be *FILE*; check the "*Is Imported File*" property. We will call our expander *MENU\_ITEMS*. ![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip0_1729493723.png)
2. **Select the file**: ![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip1_1729493791.png)
3. Add the expander to the position in your code tree or editor where you want the file pulled in.![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip0_1729496098.png)
 

The generated output shows that the contents of:

*C:\\Users\\admin\\OneDrive\\Documents\\CodeStencil\\ImportFolder\\RadzenBlazor-menu.txt*

has been inserted into the generated

*C:\\temp\\CodeStencil\\BlazorCRUDThreeTiered9\\re-radzen-blazor\\BlazorCRUDThreeTiered.Client\\Layout\\NavMenu.razor*

![](https://cdn.eniston.com/bases/5691f589-9697-4a3a-b3a1-f6588fa2e596/attachments/mceclip1_1729496395.png)
