title: android what is wrong with openFileOutput?
body: <p>I'm trying to use openFileOutput function but it doesn't compile and doesn't recognize the function. I'm using android sdk 1.6. Is this a sdk problem ? Is this a parameter problem ?</p>
  
  <pre><code>import java.io.FileOutputStream;
  public static void save(String filename, MyObjectClassArray[] theObjectAr) {
      FileOutputStream fos;
      try {
          fos = openFileOutput(filename, Context.MODE_PRIVATE);
  
          ObjectOutputStream oos = new ObjectOutputStream(fos);
          oos.writeObject(theObjectAr); 
          oos.close();
  
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      }catch(IOException e){
          e.printStackTrace();
      }
  }
  </code></pre>