Writing String into a File

Posted by Halo on Stack Overflow See other posts from Stack Overflow or by Halo
Published on 2010-05-19T19:11:37Z Indexed on 2010/05/20 10:10 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

I'm implementing a WebScript using Alfresco's JavaScript. l'm trying to insert string to a file, but I can't do it.

When I write another file's content like:

file.properties.content.write(content);

It works, and the file's contents are copied into my file. But I can't insert string directly, like:

file.properties.content.write("Stuff like that");

it gives an exception. How can I write string into this file?

© Stack Overflow or respective owner

Related posts about alfresco

Related posts about JavaScript