wxFile::Access test for writablity of files that don't exist yet

James Bigler bigler at cs.utah.edu
Thu Jun 7 08:03:43 PDT 2007


I'm trying to use wxFile::Access(filename, wxFile::write) to test if I 
can open a file for writing.  It currently returns false if the file 
doesn't exist.  Is this the intended API?

Is there a standard way I could tell if I could open a non-existent file 
for writing (i.e. if I open the file no errors will occur)?

I guess I could always try and open the file and close it again, but I 
would rather not if there is a more elegant solution.

I'm currently using wxWidgets 2.6.3 (non unicode) on windows xp pro.

Thanks,
James




More information about the wx-users mailing list