a technical how to

Dan Nelson dnelson at allantgroup.com
Mon Dec 8 20:30:53 PST 2003


In the last episode (Dec 08), Kevin D. Kinsey, DaleCo, S.P. said:
> Harald Schmalzbauer wrote:
> >On Tuesday 09 December 2003 02:51, homeyra g wrote:
> >>So, I hope this is the right address for this type of question. If
> >>not would you please forward this and/or let me know the correct
> >>address.
> >>
> >>Thanks,
> >>
> >>Here is the question: How to truncate a file from the begining to a
> >>certain point in the file?

If you're writing a script, use the /usr/bin/truncate command.  If
you're writing a C program, use the truncate() function.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list