rem: var localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile); localFileInstance.initWithPath(aFilePath); 
add: var LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile); LocalFileInstance.initWithPath(aFilePath); 
context: function saveDataToFile(aFilePath, aDataStream, charset){   const LOCALFILE_CTRID = "@mozilla.org/file/local;1";   const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1";   const nsILocalFile = Components.interfaces.nsILocalFile;   const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream;   var outputStream;      var localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile);   localFileInstance.initWithPath(aFilePath);   outputStream = Components.classes[FILEOUT_CTRID].createInstance(nsIFileOutputStream);   try   {      if(charset)         aDataStream = convertFromUnicode( charset, aDataStream );      outputStream.init(localFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664, 0);      outputStream.write(aDataStream, aDataStream.length);      // outputStream.flush();      outputStream.close();   }   catch(ex)   {      alert("Unable to write to file: " + aFilePath );   }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/5d261082cfdf78e9abe5a109fca55443e889fab5/calendarImportExport.js/clean/calendar/resources/content/calendarImportExport.js