Hai friends why we need to read a file before re-write a record?
Without knowing what field to rewrite we cannot use rewrite the field in a record.Thats why we read the file first and then rewrite the same