How can I load text from file with blueprint?

That doesn’t work for me. I also don’t see what else is different about your code or mine. Note that the code on the left you display is not my code as you said, but rather the code mentioned further up in the page where there’s the typo “UyourBlueprintFunctionLibrary” instead of “UMyBlueprintFunctionLibrary”. I don’t have that typo in my files. See the screenshot I supplied above.

So the code still won’t compile (since there’s been no changes made to it…)