Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Inspect
Useful list functions
DMedia
Custom Projector Icon
bkMixer
Director Web
mySystem
Sending a e-mail with attachment using CDO and VbScriptXtra
Line Skip-Alphamania
Macromedia Director Game Development: From Concept to Creation
 

 

 

Behavior Save text to a file

Added on 6/8/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: Macromedia (website)

Make a file from a string. Requires File IO Xtra

on makeFileFromText whichFile  
  global gTextOfFile  
  set myFile = new(xtra "fileio")  
  if fileExists(whichFile) = 0 then
    deleteFile(whichFile)
  end if
  createFile(myFile, whichFile)
  openFile(myFile, whichFile, 2)  
  writeString(myFile, gTextOfFile)  
  closeFile(myFile)                    
  set myFile = 0                        
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail