Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ralf on August 26, 2011, 04:51:09 pm

Title: JavaScript: write a file
Post by: Ralf on August 26, 2011, 04:51:09 pm
Is it possible to create and write a file from a JavaScript Script?
If not, is it possible in a JScript Script?

Thanx,
Ralf
Title: Re: JavaScript: write a file
Post by: johann on August 26, 2011, 09:07:47 pm
Writing to a file is not possible with JavaScript.

But with JScript you can use Microsoft Windows Scripting Technologies (including file access via File System Objects). For a reference see http://msdn.microsoft.com/en-us/library/bkx696eh%28v=VS.85%29.aspx