Thomas Dutch wrote:

> Hello,
> 
> I'm relatively new to Ruby and I have a question:
> 
> Is it possible to remove one or more lines from a file, without
> reading the whole file and writing it away again? This because I'll
> have to do this with files of 1 gigabyte and larger... Is there a high
> performance solution for this?
> 
> Thank you!

Said like this, i don't think it is possible as it is not related to the
language but to the file structure.
It depends on the programs which read the file, can they be fixed to
accept lines which begin with somethinq that says 'skip me', such as a
'#' ?