Indigo Rose Software
  #1  
Old 09-22-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Writing Text to a File

Writing Text to a File

Writing Text to a File

Document ID: IR10001
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Standard Edition
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to write text to a file.

DISCUSSION

When writing information to a text file, there are three options:

  1. We can create a new text file and write our data to it.
  2. Data can be "added on" to the end of an existing text file, this is known as "appending" a text file.
  3. Data in an existing text file can be overwritten.

In AutoPlay Media Studio 5.0, these different options are accomplished by toggling the Append value of the TEXT FILE > WRITE action (a new file will always be created if the target file does not exist).

As an example, we will write "Hello, my name is John Doe" to a text file, overwriting its contents. This is accomplished with the following action:

TextFile.WriteFromString("c:\text.txt", "Hello, my name is John Doe", false);

MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | TextFile | TextFile.WriteFromString

KEYWORDS: AutoPlay Media Studio 5.0, Actions, Write, Text, File, Overwrite, Append, Disk


Last reviewed: September 22, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

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 On



All times are GMT -6. The time now is 07:00 PM.


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