With the following code I'm having the file truncated, not appended.
if ficheiro.open(nome_ficheiro, File.READ_WRITE) == OK:
ficheiro.store_line(linha)
ficheiro.close()
Is this supposed to erase the contents of the file?
I had the idea that, for truncating, there is WRITE_READ. Is this a bug?
Also, is there a way to create a file if it does not exist and ONLY append if it exists?
(I mean another way besides reading the file and writing it back all together)