If separator is the newline character ("\n") the resulting string will be terminated with a newline character. This is done to have a text file that consists of N lines (each of which is terminated with a newline) and is read in with the fileread() function and split into an array of N strings to be joined to the original string as read from the file.
Example
string a[] = { "Field 1", "Field 2", "Field 3" }; string s = strjoin(a, ':');
Index | Copyright © 2005 CadSoft Computer GmbH |