fWriteLine @ Beginning of File
July 19, 2019 09:29PM
Hi All,

Can someone remind me of the mode I would use on fOpen in order to write a string to the beginning of an existing text file?

// open the file to write 
nLogID is int = fOpen(sLogFile, foCreateIfNotExist+foAdd+foReadWrite)
IF nLogID <> -1 THEN
	fWriteLine(nLogID, &sLogInfo, Length(sLogInfo))
	fClose(nLogID)

	// write out to service log	
	IF InServiceMode() THEN
		IF evtType <> elWarning THEN
			ServiceWriteEventLog(sLogInfo,evtType)
		END
	END
END


Thanks!
Georgio
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: