Write string to file #17
Replies: 2 comments
-
I added a class method to Also, check out the Python context manager used by |
Beta Was this translation helpful? Give feedback.
-
Awesome, again! I've played around with |
Beta Was this translation helpful? Give feedback.
-
Is there a way to write a string to a file with LTK? I can do it with pyscript (example below), but if it can be done with LTK, it would make it more convenient for the small app I plan to develop. I have written a finite element simulation tool that I am adapting to use TOML files to specify and control the simulation geometry and specifics. The small app I want to develop with LTK provides a user interface to set up the geometry and simulation details. As such it will need to read and write TOML files, which is why I ask about using LTK to write a string to a file, which is the last base capability that I need. If there isn't a way to do this with LTK, I'll plan on having part of the app use pyscript directly for this feature. Ultimately I would like to open source the whole simulation tool and TOML file setup UI app to benefit my corner of the scientific world.
index.html
file with pyscript code to write to a string to a file:Beta Was this translation helpful? Give feedback.
All reactions