Indigo Rose Software
  #1  
Old 10-16-2007
Ted Sullivan's Avatar
Ted Sullivan Ted Sullivan is offline
Indigo Rose Staff Member
 
Join Date: Oct 2003
Posts: 825
How do I write to a text file?

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.

Code:
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
Action Reference
Scripting Guide
How do I? Articles
Variables
__________________
Check out the new MSI Factory 2.0!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i wont to write a text file in multi lines lnd AutoPlay Media Studio 6.0 4 02-21-2006 06:06 PM
Example: Loading Paragraph Text Using a Timer Jonas DK AutoPlay Media Studio 5.0 Examples 7 11-25-2004 06:10 PM
Audio Tracks Project Michael AutoPlay Media Studio 5.0 7 03-18-2004 11:58 PM
Write to a specific line in a text file Paal AutoPlay Media Studio 5.0 0 02-03-2004 04:20 AM
Any way to grab source and destination file locations from a text file? igough Setup Factory 6.0 1 05-30-2003 09:11 AM


All times are GMT -6. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software