JCL Help:StringToFile@TFileName@AnsiString@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Writes a string to a file.


Pascal

 procedure StringToFile(const FileName: string; const Contents: RawByteString AnsiString; Append: Boolean = False);
procedure StringToFile(const FileName: TFileName; const Contents: AnsiString; Append: Boolean = False);


Parameters

Parameters Description
const FileName: string Fully qualified name of the file.
const Contents: RawByteString AnsiString The string whose contents to write to the file.


Description

The StringToFile routine writes the contents of the specified string to a file. Note that the full content is written to the file, including any null terminating characters. The string is considered a generic buffer and can contains anything.


See Also

FileToString


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page