changeset 72378 | 075f3cbc7546 |
parent 72036 | e48a5b6b7554 |
child 72442 | 90868036d693 |
--- a/src/Pure/General/file.scala Mon Oct 05 22:23:17 2020 +0200 +++ b/src/Pure/General/file.scala Mon Oct 05 22:49:46 2020 +0200 @@ -269,6 +269,12 @@ } + /* change */ + + def change(file: JFile, f: String => String): Unit = write(file, f(read(file))) + def change(path: Path, f: String => String): Unit = write(path, f(read(path))) + + /* append */ def append(file: JFile, text: CharSequence): Unit =