Path: 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 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.