Unicode Controls & Classes for VB6 - Version 4

clsUniFile.WriteNumCharsAndString Function

Write a string to a binary file

Public Function WriteNumCharsAndString (ByRef s As String, _
ByVal iFileEnc As eFileEncoding) As Boolean
Parameter Description
ByRef s As String The string to write
ByVal iFileEnc As eFileEncoding File encoding
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