Unicode Controls & Classes for VB6 - Version 4

clsUniFile.WriteNumCharsAndString Function

Write a string to a binary file

Syntax
Public Function WriteNumCharsAndString (ByRef s As String, _
ByVal iFileEnc As eFileEncoding) As Boolean
Parameters
Parameter Description
ByRef s As String The string to write
ByVal iFileEnc As eFileEncoding File encoding
Remarks
This function writes the len of the string, then the string so you can easily read the string from the file using the [ReadNumCharsAndString] function