The first error message has nothing to do with being able to write to the file. It is complaining about not being able to write to the "source" property of the object.
As for the other error message,
This error message is output by the example's read() if the file cannot be opened. Chances are the path is wrong, or the resource file has not been built into your project.Then the file could be opened but not read and I get the error message: ...
Bookmarks