GAE does not allow writing to a file or spanning threads. Its mentioned in
the documentation.

Thanks
hari

On Mon, Jun 21, 2010 at 5:22 PM, Lu <chenglu.annal...@gmail.com> wrote:

> Hi,
>
> I am trying to use FileOutputStream to print out results into a file,
> but it is not supported by google app engine.
>
> If I want to to write something to a file (on the sever side), what
> should I do?
>
> It seems like PrintWriter still does not work.
>
> File file = new File("haha.txt");
> if(file.exists()){
>   System.out.println("here ");
>
>
> }
>
> PrintWriter pw = new PrintWriter(file);
>
> I will get error that says 'Caused by:
> java.security.AccessControlException: access denied
> (java.io.FilePermission haha.txt write)'
>
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to