Talk:File IO

From MozillaZine Knowledge Base
Revision as of 16:34, 21 December 2004 by Asqueella (talk | contribs)
Jump to navigationJump to search
var file = Components.classes["@mozilla.org/file/directory_service;1"].
	createInstance(Components.interfaces.nsIProperties).
	get("ProfD", Components.interfaces.nsIFile);

-- should that be getService or createInstance? I'd use getService and Google thinks that both are possible.

Asqueella 08:19, 21 Dec 2004 (PST)~

I believe, getService is more appropriate, changed the article. Asqueella 08:34, 21 Dec 2004 (PST)~