TStringList.SaveToFile

procedure SaveToFile(FileName: string) FileName: path to a target file

Description
SaveToFile saves the contents of the stringlist to the file with name FileName. It writes the strings to the file, separated by end-of-line markers, so each line in the file will contain 1 string from the stringlist.

Example
script file: myfile.txt in soldatserver's root folder: a b c