Write string to file with 3.6

2012-10-20 Thread Baptiste Saleil
Hi there. I'm trying to update my extension for 3.6 Here is my old code : let f = Gio.file_new_for_path(file); let out = f.replace(null, false, Gio.FileCreateFlags.NONE, null); Shell.write_string_to_stream (out, content); This code work perfectly with 3.4 but not 3.6. A file is created in the

Re: Write string to file with 3.6

2012-10-20 Thread Giovanni Campagna
2012/10/20 Baptiste Saleil baptiste.sal...@gmail.com: Hi there. I'm trying to update my extension for 3.6 Here is my old code : let f = Gio.file_new_for_path(file); let out = f.replace(null, false, Gio.FileCreateFlags.NONE, null); Shell.write_string_to_stream (out, content); This code