|
clsUniFile.st_StringToTextFile Function
Creates a file with the specified string
Syntax
Public Function st_StringToTextFile (ByVal vsPathFile As String, _ ByVal vsText As String, _ Optional ByVal iEncoding As eFileEncoding = fe_ANSI, _ Optional ByVal bRaiseError As Boolean = True, _ Optional ByVal bWriteBOM As Boolean = True) As Boolean
Parameters
Parameter |
Description |
ByVal vsPathFile As String |
The file to create |
ByVal vsText As String |
The text to put inside the file |
Optional ByVal iEncoding As eFileEncoding = fe_ANSI |
The encoding to use |
Optional ByVal bRaiseError As Boolean = True |
If True, raises an error if there is a problem; otherwise it returns False as a result |
Optional ByVal bWriteBOM As Boolean = True |
Pass False to use a specified encoding but don't write the BOM marker on the beginning of the file |
|