title: Errors when writing object to binary
body: <p>So, here is the code that I have:  </p>
  
  <pre><code>try  
  {  
    PlayerSave save = new PlayerSave(this);   
    save.playerLooks = look;        
    File test = new File("C:/cache/" + playerName + ".tmp");  
    test.createNewFile();  
    FileOutputStream f_out = new  
        FileOutputStream("C:/cache/" + playerName + ".tmp");  
    ObjectOutputStream obj_out = new ObjectOutputStream (f_out);  
    obj_out.writeObject (save);  
    obj_out.close();  
    f_out.close();  
  }  
  catch (Exception e)  
  {  
    e.printStackTrace();  
  } 
  </code></pre>
  
  <p>Upon execution, I get the following error:</p>
  
  <pre><code>java.io.FileNotFoundException: C:\cache\Bobdole.tmp (The system cannot find the path specified)
  </code></pre>
  
  <p>I have also tried using this code:</p>
  
  <pre><code>    try
      {
        PlayerSave save = new PlayerSave(this); 
        save.playerLooks = look;      
  //      File test = new File("C:/cache/" + playerName + ".tmp");
  //      test.createNewFile();
        FileOutputStream f_out = new
            FileOutputStream("C:/cache/" + playerName + ".tmp");
        ObjectOutputStream obj_out = new ObjectOutputStream (f_out);
        obj_out.writeObject (save);
        obj_out.close();
        f_out.close();
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
  </code></pre>
  
  <p>However, it produces the same error. I am confused as to why this is not working, as everything seems to be right. If you guys can figure out the problem that would be so helpful.
  Thanks!!</p>