dfour wrote:Hi David,
When reading a file using nsIScriptableInputStream init'ed with annsIInputStream, I get an NS_ERROR_FILE_ACCESS_DENIED on Windows platform (not on Linux), even if the file to read have just been created with an nsIOutputStream object.
Can you post some code? I was able to create a file and read it with no problems.
David
Well, I fixed it: the mode argument in the nsIFileInputStream.init() method was not set.
It works on Linux but Windows doesn't accept a null value (e.g. RDONLY_MODE).
Thanks for your answer.
Daniel
