How to edit each line of a file in ruby, without using a temp file

It sounds like you might be better using records in a database for
each line and re-generate the file when it is needed as a file. Rails
is quite good at modifying records in a database :slight_smile:

Colin