This code got compiled but not works correctly

2021-07-25 Thread enthus1ast
Try to flush or close the filehandle explicitly.

This code got compiled but not works correctly

2021-07-24 Thread Araq
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

2021-07-23 Thread Mandofskii
(* using nimpy ) code : import nimpy py = pyBuiltinsModule() discard py.open("file.txt", "w").write("Hello Nim!") (* File created but its empty)