title: Save and read file with stream on BlackBerry
body: <p>Argument 'address' is the string "CepVizyonVersionFile", and after <code>Connector.openDataInputStream(address)</code> the program throws an exception with message: </p>
  
  <blockquote>
    <p>no ' : ' in URL.</p>
  </blockquote>
  
  <p>What format should address be in?</p>
  
  <pre><code>public void saveLocal(String fileString, String address) {
          try {
              DataOutputStream fos = Connector.openDataOutputStream(address); //openFileOutput(address);
              fos.write(fileString.getBytes());
              fos.close();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
  }
  
  public String readLocal(String address, int lenght) {
      byte[] buffer = new byte[lenght];
      byte[] buffer2;
      String str = new String();
      try {
          DataInputStream fis = Connector.openDataInputStream(address);
          int lnght = fis.read(buffer);
          buffer2 = new byte[lnght];
          fis.close();
          for (int i = 0; i &lt; lnght; i++)
              buffer2[i] = buffer[i];
          str = new String(buffer2);
      }  catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
      return str;
  }
  </code></pre>