rem: LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); LocalFileInstance.initWithPath( aFilePath ); 
add: localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); localFileInstance.initWithPath( aFilePath ); 
context: function readDataFromFile( aFilePath, charset ){   const LOCALFILE_CTRID = "@mozilla.org/file/local;1";   const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1";   const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1";      const nsILocalFile = Components.interfaces.nsILocalFile;   const nsIFileInputStream = Components.interfaces.nsIFileInputStream;   const nsIScriptableInputStream = Components.interfaces.nsIScriptableInputStream;   var localFileInstance;   var inputStream;   var scriptableInputStream;   var tmp; // not sure what the use is for this      LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile );   LocalFileInstance.initWithPath( aFilePath );   inputStream = Components.classes[FILEIN_CTRID].createInstance( nsIFileInputStream );   try   {      inputStream.init( LocalFileInstance, MODE_RDONLY, 0444, tmp );            scriptableInputStream = Components.classes[SCRIPTSTREAM_CTRID].createInstance( nsIScriptableInputStream);      scriptableInputStream.init( inputStream );      aDataStream = scriptableInputStream.read( -1 );      scriptableInputStream.close();      inputStream.close();            if( charset)         aDataStream = convertToUnicode( charset, aDataStream );   }   catch(ex)   {      alert("Unable to read from file: " + aFilePath );   }   return aDataStream;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b3318ba732d90edfbd2663fc6138503d1a313074/importExport.js/buggy/calendar/resources/content/importExport.js