Ted Sullivan
10-16-2007, 01:34 PM
Question
Can I use actions in AutoPlay Media Studio to write out to a textfile?
Answer
The action TextFile.WriteFromString() can be used to write to a textfile. There are three options that should be looked at:
We can create a new text file and write our data to it.
Data can be "added on" to the end of an existing text file, this is known as "appending" to a text file.
Data in an existing text file can be overwritten.
For example the following action will write out "Hello, my name is John Doe" to a text file, overwriting its contents.
TextFile.WriteFromString("c:\\\\text.txt", "Hello, my name is John Doe", false);
For more scripting help and examples, check out the following resources:
Online Help File (http://www.indigorose.com/webhelp/ams60/)
Action Reference (http://www.indigorose.com/webhelp/ams60/Program_Reference/Actions/Alphabetical_List.htm)
Scripting Guide (http://www.indigorose.com/webhelp/ams60/Scripting_Guide/Scripting_Guide.htm)
How do I? Articles (http://www.indigorose.com/webhelp/ams60/How_do_I/How_do_I.htm)
Variables (http://www.indigorose.com/webhelp/ams60/Program_Reference/Variables/Variables.htm)
Can I use actions in AutoPlay Media Studio to write out to a textfile?
Answer
The action TextFile.WriteFromString() can be used to write to a textfile. There are three options that should be looked at:
We can create a new text file and write our data to it.
Data can be "added on" to the end of an existing text file, this is known as "appending" to a text file.
Data in an existing text file can be overwritten.
For example the following action will write out "Hello, my name is John Doe" to a text file, overwriting its contents.
TextFile.WriteFromString("c:\\\\text.txt", "Hello, my name is John Doe", false);
For more scripting help and examples, check out the following resources:
Online Help File (http://www.indigorose.com/webhelp/ams60/)
Action Reference (http://www.indigorose.com/webhelp/ams60/Program_Reference/Actions/Alphabetical_List.htm)
Scripting Guide (http://www.indigorose.com/webhelp/ams60/Scripting_Guide/Scripting_Guide.htm)
How do I? Articles (http://www.indigorose.com/webhelp/ams60/How_do_I/How_do_I.htm)
Variables (http://www.indigorose.com/webhelp/ams60/Program_Reference/Variables/Variables.htm)