Lisp HUG Maillist Archive

Setting file length

Is there a Lisp command for setting the length of a file?


Re: Setting file length


On Oct 13, 2009, at 11:48 PM, Laughing Water wrote:

> Is there a Lisp command for setting the length of a file?


No, there is no function in COMMON-LISP to do such a thing.

If you are on a POSIX system with the XSI option, you may use the  
truncate POSIX function, thru FFI.


-- 
__Pascal Bourguignon__
http://www.informatimago.com




Updated at: 2020-12-10 08:40 UTC