Does Google App Engine allow creation of files and folders on the server ?

Posted by Frank on Stack Overflow See other posts from Stack Overflow or by Frank
Published on 2010-04-22T17:34:22Z Indexed on 2010/04/22 17:43 UTC
Read the original article Hit count: 293

Filed under:
|
|

I know Google App Engine offers free space, but I wonder if it's for storing data in it's database only or does it also allow me to create files and directories on the server side to store my data ? For instance can I use the following method to save file ?

  public static void saveFile(String File_Path,StringBuffer Str_Buf,boolean Append)
  {
    FileOutputStream fos=null;
    BufferedOutputStream bos=null;

    try
    {
      fos=new FileOutputStream(File_Path,Append);
      bos=new BufferedOutputStream(fos);
      for (int j=0;j<Str_Buf.length();j++) bos.write(Str_Buf.charAt(j));
    }
    catch (Exception e) { e.printStackTrace(); }
    finally
    {
      try 
      {
        if (bos!=null)
        {
          bos.close();
          bos=null;
        }
        if (fos!=null)
        {
          fos.close();
          fos=null;
        }
      }
      catch (Exception ex) { ex.printStackTrace(); }
    }
  }

Frank

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about save