Post #3675: ![](https://blenderartists.org/user_avatar/blenderartists.org/stefakapapy/48/592

📋 Metadata

🏷️ Tags

scripting intermediate

  • Python Scripting
  • Macro Editor

💬 Content

Stefakapapy:

It works fine but is it possible to avoid this return char at the end of line ?

Try this:

f = open("/path/to/my_file.txt", "r"); [L.label(text=line.strip()) for i, line in enumerate(f)]; f.close()

❤️ 3 likes


🔗 View on Blender Artists