writeString

writeString(str: String);

The writeString method of the File class writes the string specified in the str parameter to the receiver file. This method automatically opens the file if it is not already open.

Use subscript operators if only part of the string specified in the str parameter is to be written to the file; for example:

writeString(s[1:10]);

The writeString method is valid only for files that are opened as text files. An exception is raised if the writeString method is attempted on a binary file.

If an ANSI version of JADE writes to a Unicode file, the string is automatically converted from ANSI to Unicode before it is written. If a Unicode version of JADE writes to an ANSI file, the string is automatically converted from Unicode to ANSI before it is written.

The maximum size of data that can be written by the writeString method when the value of the FileNode class usePresentationFileSystem property is set to true is 2G bytes.

If this limit is exceeded, exception 5047 (Invalid record size) is raised.