title: Android and LibGDX : create XML file in local storage
body: <p>I want to check if in my <code>/assets/game/</code> directory there is a file <code>level.xml</code> and if it does not exist I want to create it. I use this code:</p>
  
  <pre><code>private static void LoadXML() {
        ProgressFileHandle = Gdx.files.local("game/level.xml");
        if (!ProgressFileHandle.exists()) {
           try {
              ProgressFileHandle.file().createNewFile();
           } catch (IOException e) {
              e.printStackTrace();
           }
        } else ProgressFileHandle.file().readString();
  }
  </code></pre>
  
  <p>This code does not work, I get the error:</p>
  
  <blockquote>
    <p>java.io.IOException: No such file or directory </p>
  </blockquote>
  
  <p>it works if I change
  <code>Gdx.files.local("assets/game/level.xml");</code> 
  to 
  <code>Gdx.files.local("level.xml");</code> But I don't understand why.  How can I create this file in a subdirectory (<code>assets/game</code>)?</p>