How do I...?

Write Text to a File

When writing information to a text file, there are two options: the text can be added on to the end of the text file, or the current information in the text file can be overwritten. In AutoPlay Media Studio, this is accomplished by changing the Append value to false in any action that writes to a file.

As an example, we will write "la de da de da" to a text file, overwriting its contents. This is accomplished with the following action:

TextFile.WriteFromString("c:\text.txt", "la de da de da", false);