🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13945

truncating a file.

#13945
From: Steve Paine
Date: Wed, 28 Feb 1990 13:07
16 lines
1029 bytes
Could someone give me a starting point on how to truncate an AmigaDOS file
in 'C' please. (e.g taking, say, 20 bytes off the end.) Just copying the 
(file - number_of_bytes_to_reduce_by) is not going to be good enough because as
I will only be taking a maximum of 100 bytes off, and on a floppy too, I will
have a prob with files bigger than 400 Kbytes - it wont fit on a floppy.
(Yes, I will have a file that big, its hopefuly going to be a database!) 
I need something along the lines of the SunOs function truncate() if thats
any help to you. 

	Any help will be greatly appreciated.

	Steve Paine.
	British Telecom Research labs,
	Martlesham,
	Ipswich,
	ENGLAND.
Technical Details
Message-ID: <591@galadriel.bt.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!axion!galadriel!stevep

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!ukc!axion!galadriel!stevep
From: stevep@galadriel.bt.co.uk (Steve Paine)
Newsgroups: comp.sys.amiga.tech
Subject: truncating a file.
Message-ID: <591@galadriel.bt.co.uk>
Date: 28 Feb 90 13:07:23 GMT
Organization: RT6115, BTRL, Martlesham Heath, England
Lines: 16