Calvin Liu wrote: > nsCOMPtr<nsILocalFile> fn; > rv = NS_NewNativeLocalFile(str, PR_FALSE, getter_AddRefs(fn)); > >even rv returns NS_OK, i can't find the file anywhere, why? > >what's wrong? > Nothing. <nsIFile>, including <nsILocalFile>, are just a cross-platform way to *reference* files. Imagine them as XP file*names*. You have to use other means to create and/or write to files, e.g. output streams.
Ben
