You will need to make a Python script for this that will read your text file and use the blender API to create fragments and scenes. Blender can only display files if they have programs (plugins) that do this. In fact, most file formats can be read by the blender only thanks to the plugins implemented in Python that come with the program.
Alternatively, you can adapt your program that generates a scene so that, in addition to generating a text file, you can draw it inside a blender using your API. This approach may be easier than writing separate logic to parse your own file.
If your script is Python2.x, you will need to use blender 2.49 - since Blender 2.5 and newer versions use Python 3 for scripting.
source share