Support editing the file multiple times