Documentation on writing and reading file from server...

I have searched a lot on how to write/read a text file on a server in java... But i don't know which works with Processing... Details : I already have a hosting account and have text file in the server. I want to read and write text into it from the sketch. Can anyone point me to a documentation or give a code segment and a bit of explanation? Please! FYI : question in Javascript mode. If not possible in Javascript, Java will also do. Thanks in advance.

Answers

  • Answer ✓

    Look into Ajax for reading a file from the same server than the one delivering the HTML page from which you operate.

    For writing data, you will need a server side script (eg. PHP) to get data from the script (via Ajax too) and to write it to the server.

  • Okay now i know what to search for!

Sign In or Register to comment.