[ic] Possible to Create files?

Kevin Walsh interchange-users@icdevgroup.org
Thu Aug 1 18:19:00 2002


> 
> Thanks for your suggestion!  :)  However, I find that using the "log" 
> tag will append the results to the file.  I need to re-create the 
> file instead (ie, not append).  In perl, what we usually will do is 
> to use ">file", however, when I tried this (refer to code below), it 
> doesn't work  --only the last line remains in the file, those lines 
> above it are lost.  How can I achieve that?
> 
> 
> This is what I tried:
> 
> [tmp my_mailinglist]
> [query st=db sql="select * from userdb  WHERE  newsletter = 'yes'" 
> list=1]
> [sql-data userdb email][/query]
> [/tmp]
> 
> [scratch my_mailinglist]
> 
> [log file=">mailinglist" interpolate=1 hide=1][scratch 
> my_mailinglist][/log]
> 
Try this:

    [log file="mailinglist"
        type="text"
        create=1
        hide=1
        interpolate=1
    ][scratch my_mailinglist][/log]

If the "file" parameter starts with a ">" then you don't need to
specify the "create=1".  I just think it looks cleaner.  The part
you were missing was type="text".

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/