Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>b_riter()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
b_riter()


Syntax:     b_rite(<expC1>,<expC2>)

Purpose:    Write a date and time stamped message to a log file

Arguments:  <expC1> is the filename to write to

            <expC2> is the text to write

Returns:    A logical value

Note:       If the log file does not exist it will be created.

            Otherwise, text will be appended to the end of specified file

Library:    MICROSYS.LIB

----------------------------------- Example ----------------------------------

   if( !b_ingroup("accounting") )
       b_rite("asscss.log",b_fullname()+" tried to access accounting files!")
       qout(b_fullname+" is not a member of the accounting group!")
       dbcloseall()
       eoj()
   endi

   output to log file would look like:

   On 02/01/93 At 10:32:30 John Smith tried to access accounting files!

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson