Hi,
Deleting a particular line/certain bytes from a file is very inefficient as there is a lot of reading and writing(re-writing) to be done. Is there anyway we can minimize work in such a process? Imagine if an entire file is a set of linked lists and as a user we know the structure of these linked lists then wouldn't it be wonderful as we can easily accomplish such a task quite efficiently. Unfortunately, that is not the case.
I asked this question as I was curious to know how an OS manages a text file.
Thanks, Mir