ListWriteToFile

InstallShield 2014 ยป InstallScript Language Reference

The ListWriteToFile function writes a string list to a text file. Each string appears on a separate line in the text file.

Note: Note if the file already exists and the pre-existing file is Unicode, it writes the file as Unicode. Otherwise, it writes the file as ANSI.

Syntax

ListWriteToFile ( listID, szFileName );

Parameters

ListWriteToFile Parameters

Parameter

Description

listID

Specifies the name of a string list to write into a text file.

szFileName

Specifies the fully qualified name of the file to which the string list is to be written. If the file does not exist, it is created. If the file already exists, it is overwritten.

Return Values

ListWriteToFile Return Values

Return Value

Description

0

The function was successful.

ISERR_LIST_NOSUCHLIST (-501)

Indicates that a list with the specified ID does not exist. Valid list IDs are return values from the ListCreate function.

< 0

The function failed.

See Also