File_LogLine()

… visits
Parent Previous Next

Syntax

File_LogLine(ByRef LogString As Dword, pFileNaAdd As sSdTempName1), Byte

Parameters

Parameter

Description

LogString

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

pFileNaAdd

file's name to append to

Return value

0 if all OK

Overview

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


Appends one line of text from a string buffer to a file


Appends one line of text to a file, creating it first if it doesn't already exist. Combines open-or-create, File_WriteString() and a CRLF line ending in one call.

Example

Dim sTemp As String * 20        'Create string array variable

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

File_LogLine(sTemp, "Do.txt")   '(Create) Append the entire string to "Do.txt"

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

File_LogLine(sTemp, "Bo.txt")   '(Create) Append the entire String To "Bo.txt"

Created with the Personal Edition of HelpNDoc: 5 Reasons Why a Help Authoring Tool is Better than Microsoft Word for Documentation