Hi ,
I want to create a text file through shtml code and save the text file under log folder in Collaboration.
Example:
From shtml file, I need to create a text file "test.txt" and write text "Hello World" in to test.txt file.
I also tried the below javascript in shtml file to create txt file. But its not working. Is there any better option to create a text file through shtml code?
<script type="text/javascript">
var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.CreateTextFile("/Collaboration/log/test.txt", true);
s.WriteLine('Hello World');
s.Close();
</script>
Thanks,
Ravi Shankar