Add file_writeOnce() method.