If you mean that you're reading text from a file using the Read text from file action and you expect that a variable notation in the text will be automatically replaced with the variable value, that is not going to happen. This is not how it works at all.
When you read text from file, it is read literally. The flow will assume your string says "Hello %var%" and will not understand that you want %var% in the string to be interpreted as an actual variable.
A better approach would be to read the text from the file and then use Replace text on it to replace the placeholders in the text with variable values. If the placeholder is not found, nothing will be replaced, so this can be used dynamically.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.