How can I simply write a string (or number) into a file? I tried assigning its content property, and using write() function; but write(string) isn't supported, I couldn't make it work. Should I get its node first?
I edited the title, I'm trying to do this using Alfresco's JavaScript. I saw ContentWriter thing, but I think it's for Java-backed implementations. Mine is not, it's just a webscript. If it's not java, can you please tell how I can use it in my script?