File_WriteString()

Parent Previous Next

Syntax

File_WriteString(ByRef StringBuffer As Dword), Byte

Parameters

StringBuffer — destination string buffer array — a string variable is required here, since ByRef passes its address automatically


Return value — 0 if all OK

              1 if the file couldn't be opened/created or the disk filled up 


Writes the characters in StringBuffer to the currently open file


Writes the characters in StringBuffer to the currently open file with File_Append(), up to (but not including) the null terminator - or up to StringBuffer's full declared length if no null terminator is found within it.

Example

    Dim sTemp As String * 40                'Create string array variable

    File_Append("temp.txt")                 'Open file "temp.txt" ready to append data

    sTemp = "hEllo world bobo"              'Place some text in this string variable

    File_WriteString(sTemp)                 'Write the string into "temp.txt" from sTemp

    File_Close()                            'Close file

Created with the Personal Edition of HelpNDoc: Maximize Your Documentation Capabilities with HelpNDoc's Project Analyzer