|
| KiXtart Command Reference |
WRITELINEactionAppends a line to the end of the file indicated by FileNumber. If WriteLine encounters an error, @ERROR is set to the relevant errorcode. syntaxWRITELINE (file number, linetowrite) parameterFile number A numeric expression indicating the file number of the file to open. Possible values range from 1 to 10. LineToWrite The string you want to write to the file. remarksWriteLine does not automatically append a <Carriage Return>, so if you want to write a <Carriage Return>, you should add it to the string (as in : $LineToWrite + Chr(13) + Chr(10)). returns
exampleIF Open( 3 , C:\TEMP\LOG.TXT , 5 ) = 0 $x = WriteLine( 3 , KiXtart started at + @TIME + Chr(13) + Chr(10) ) ELSE BEEP ? "failed to open file, error code : [" + @ERROR + "]" ENDIF |