This would appear to be an App Engine question. While there are a number of 
people in this group who use App Engine, and have even worked on the 
development of App Engine, your question would likely find a quicker and better 
answer in the group linked below:

http://groups.google.com/group/google-appengine

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[email protected]

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Jun 21, 2010, at 3:41 AM, Lu 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 AJAX APIs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to