4 ms·
To delete from the beginning of a file, overwrite offset 0 from offset n, 1 from n+1 and so on, and then truncate it when the read offset hits EOF.
by JulianMorrison 7y ago
To delete from the beginning of a file, overwrite offset 0 from offset n, 1 from n+1 and so on, and then truncate it when the read offset hits EOF.