Snippets¶
Note
To be continued…
The following import is assumed in all examples
import mjooln as mj
Read text from file¶
contents = mj.File('/path/to/file/my_file.txt').read()
Write text to file¶
mj.File('/path/to/file/my_file.txt').write(contents)
Write dictionary to JSON file¶
mj.File('/path/to/file/my_dictionary.json').write_json(di)