Re: Compacting a Random created file
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Wed, 25 Jul 2007 14:20:50 -0500
"Pop`" <nodoby@xxxxxxxxxxxxxxxxxxx> wrote
Good thoughts, Jim.
If you need to compact, scan forward to a record maked 'unused', then
scan backward from the end for a valid record, and swap the two in
the file. Do that until the scans meet -- then all the unused records
are at the end and can be trimmed off.
2nd clue: Compare this explaination with the code I provided....
;-)
LFS
.
- Follow-Ups:
- Re: Compacting a Random created file
- From: Pop`
- Re: Compacting a Random created file
- References:
- Compacting a Random created file
- From: Pop`
- Re: Compacting a Random created file
- From: Jim Mack
- Re: Compacting a Random created file
- From: Pop`
- Re: Compacting a Random created file
- From: Jim Mack
- Re: Compacting a Random created file
- From: Pop`
- Compacting a Random created file
- Prev by Date: Re: how do people feel about exit function from loop
- Next by Date: Re: Clear Immediate Winwow?
- Previous by thread: Re: Compacting a Random created file
- Next by thread: Re: Compacting a Random created file
- Index(es):