🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #426

Saving compressed files

#426
From: Tim Veatch
Date: Sat, 12 Dec 1992 01:04
30 lines
1202 bytes
Does anyone have a good macro for saving files in compressed
format within nn?

What I would like is the following...

After I hit a button to save and have entered a file name...
the macro would do:
	if the file exists then
		if it's in compressed format then
			uncompress the file
			append the text
			compress the file
		else
			append the text
		endif
	else
		save the text in compressed format
	endif

I know this uncompress/compress routine seems like a waste,
but it would save me some time and allow me to keep my disk
space low.

Can anybody help?

Also, if anyone's got a good set of nn macros around that
they are willing to send me, please do.  The examples would
help me learn how to write my own!

Thanx in advance.
Technical Details
Message-ID: <92Dec11.200358est.48007@neat.cs.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatch

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!relay.cs.toronto.edu!neat.cs.toronto.edu!cs.toronto.edu!veatch
Newsgroups: news.software.nn
From: veatch@cs.toronto.edu (Tim Veatch)
Subject: Saving compressed files
Message-ID: <92Dec11.200358est.48007@neat.cs.toronto.edu>
Sender: Timothy R Veatch <veatch@cs.toronto.edu>
Organization: Toronto
Fake-Sender: "Tim Veatch" <veatch@cs.toronto.edu>
Distribution: na
Date: 12 Dec 92 01:04:20 GMT
Lines: 31