Search code examples
filegoogle-app-enginegwtfwritejava-io

Writing to text file on in GWT project?


In my GWT project(it is a game) i want to store the score of users who playing it, into a file located on server side. And to display them in the output using String.

I can read data from file, but I can't write into file, it always says Google App Engine not supports this. I would like to know why Google App Engine don't support it? Is there any way I can add data to a file on server side? please be free to add all your opinions, every thing will be appreciated.


Solution

  • You can't write into a file on App Engine, but you have two other options.

    First, if your text is under 1MB, you can store your text in Datastore using Text entity.

    Second, you can store your text in a Blobstore.