Article View: news.software.readers
Article #35097Re: slrn macro - file save?
From: John E. Davis
Date: Sun, 13 Jul 1997 00:00
Date: Sun, 13 Jul 1997 00:00
26 lines
1302 bytes
1302 bytes
On 13 Jul 1997 06:12:30 GMT, Bek Oberin <gossamer@glasswings.com.au>
wrote:
>I'm trying to write what I assumed would be a very simple
>macro - I want to append the current article to a specific
>file (/home/gossamer/quotes/new).
There are several ways to do this. One is to use the intrinsic
function `article_as_string' and then use slang intrinsics fopen,
fclose, and fputs to write to the file, e.g.,
define my_save_article ()
{
variable fp, str;
str = article_as_string ();
fp = fopen ("/home/gossamer/quotes/new", "a");
() = fputs (str, fp);
() = fclose (fp);
}
Another is to pipe the article to 'cat >> /home/gossamer/quotes/new'.
--John
Technical Details
Message-ID:
<slrn5si5hj.coj.davis@mygir.davis.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5sgrr2.5n7.gossamer@penguin.glasswings.com.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn5si5hj.coj.davis@mygir.davis.net> Subject: Re: slrn macro - file save? Date: Sun, 13 Jul 1997 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5sgrr2.5n7.gossamer@penguin.glasswings.com.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 256662748 Organization: Center for Space Research Newsgroups: news.software.readers