fputcsv
Format line as CSV and write to file pointer
&reftitle.description;
intfputcsv
resourcehandle
arrayfields
stringdelimiter","
stringenclosure'"'
stringescape_char"\"
fputcsv formats a line (passed as a
fields array) as CSV and write it (terminated by a
newline) to the specified file handle.
&reftitle.parameters;
handle
&fs.validfp.all;
fields
An array of values.
delimiter
The optional delimiter parameter sets the field
delimiter (one character only).
enclosure
The optional enclosure parameter sets the field
enclosure (one character only).
escape_char
The optional escape_char parameter sets the
escape character (one character only).
&reftitle.returnvalues;
Returns the length of the written string&return.falseforfailure;.
&reftitle.changelog;
&Version;
&Description;
5.5.4
The escape_char parameter was added
&reftitle.examples;
fputcsv example
]]>
The above example will write the following to file.csv:
&reftitle.notes;
¬e.line-endings;
&reftitle.seealso;
fgetcsv