This code got compiled but not works correctly
Try to flush or close the filehandle explicitly.
This code got compiled but not works correctly
Maybe but you can simply use `writeFile("file.txt", "Hello Nim!")`, Nim comes with its own standard library, you don't have to use Nimpy for the easy things.
This code got compiled but not works correctly
(* using nimpy ) code : import nimpy py = pyBuiltinsModule() discard py.open("file.txt", "w").write("Hello Nim!") (* File created but its empty)