TStringList.LoadFromFile

procedure LoadFromFile(FileName: string) FileName: path to a source file

Description
LoadFromFile loads the contents of a file into the stringlist. Each line in the file (as marked by the end-of-line marker of the particular OS the application runs on) becomes one string in the stringlist. This action replaces the contents of the stringlist, it does not append the strings to the current content.

Example
myfile.txt in soldatserver's root folder: line1 line2 line3 script file: