Signature (Visual Basic / VBA)
Public Function AppendStringToFile( _
ByVal vString As Variant _
, ByVal vFileName As Variant _
) As Boolean
Code Example
AppendStringToFile("Test.", "C:\Test.Out") = True
FileToString("C:\Test.Out") = "Test."
Parameters
| Parameter | Description |
|---|---|
| vString | The String that will be added to the file named vFileName. vString defaults to an empty string ("") if it is Null or cannot be fixed-up to a string. |
| vFileName | Name to the file to which the string vString will be appended. Function returns False if vFileName is Null or cannot be fixed-up to a string. |
Notes & Version History
| Careful | Note that the order of the arguments is as implied by the function name--String then FileName. |
| Warning | This function does NOT add any carriage return nor newline characters around the string. |