| Previous | | |
Windows: Flash 8 or 9 AS2.0 SWF + mProjector
3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector
2.0;
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
2.0; replacing mProjector
1.0 async
mFile.writeString(fileName:String, textToWrite:String) : BooleanfileName - Name (including the path) of the file to write the string to.Platform Implementation Differences: On Windows the file name must include a fully qualified path. On the Mac if no path is specified, the working directory is used.
textToWrite - Text string.
A boolean.; ;
Method; Writes the specified text string to a file. The existing content of the file is deleted.
The following example write file.
var success:Boolean;
var stringToWrite:String = "this is a test";
var filename:String = mSystem.getSpecialFolder("WORKING") + mSystem.getPathDelimiter() + "temp.txt";
success = mFile.writeString(fileName, stringToWrite);
Reading and Writing to Hard Drive, Project Files, mProjector Class Basics -- mFile
| Questions or Feedback? | Previous | |