rem: var path = "c:\\download\\tmp\\firebug.txt"; var file = CC("@mozilla.org/file/local;1").createInstance(CI("nsILocalFile")); file.initWithPath(path); if ( !file.exists()) file.create(CI("nsIFile").NORMAL_FILE_TYPE, 664 ); 
add:  var file = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("TmpD", Components.interfaces.nsIFile); file.append("firebug-service-dump.txt"); file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0666); 
context: function getDumpStream(){	try	{		var path = "c:\\download\\tmp\\firebug.txt";  // I welcome your corrections.		var file = CC("@mozilla.org/file/local;1").createInstance(CI("nsILocalFile"));		file.initWithPath(path);		if ( !file.exists())			file.create(CI("nsIFile").NORMAL_FILE_TYPE, 664 );		var stream = CC("@mozilla.org/network/file-output-stream;1").createInstance(CI("nsIFileOutputStream"));		stream.init(file, 0x04 | 0x08 | 0x20, 664, 0); // write, create, truncate		return stream;	}	catch (exc)	{		ERROR("createDumpStream failed "+exc);	}}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/bb092dbcb7d435ec8e4b377ba4d747b753f7b3ae/firebug-service.js/clean/extension/components/firebug-service.js