rem: var stream = Components.classes['@mozilla.org/network/file-output-stream;1'] .createInstance(Components.interfaces.nsIFileOutputStream); 
add: var stream = Components.classes['@mozilla.org/network/file-output-stream;1'].createInstance(Components.interfaces.nsIFileOutputStream); 
context: function exportOPML(){	var opmlSource = createOpmlSource();	opmlSource = CommonFunc.convertCharCodeFrom(opmlSource, "UTF-8");	var tmpFile = Components.classes['@mozilla.org/file/local;1']					.createInstance(Components.interfaces.nsILocalFile);	try{		tmpFile.initWithPath(txtExportFile.value);		if(tmpFile.exists()){			tmpFile.remove(true);		}		tmpFile.create(tmpFile.NORMAL_FILE_TYPE, 0666);		var stream = Components.classes['@mozilla.org/network/file-output-stream;1']						.createInstance(Components.interfaces.nsIFileOutputStream);		stream.init(tmpFile, 2, 0x200, false); // open as "write only"		stream.write(opmlSource, opmlSource.length);		stream.flush();		stream.close();	}catch(e){		alert("file create error");	}}
meta: 359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/359/824a6c0449b2e5f24b379350a8119e0ed751f0d8/opml.js/buggy/src/sage/content/opml/opml.js