changeset 48550 | 97592027a2a8 |
parent 48494 | 00eb5be9e76b |
child 48613 | 232652ac346e |
--- a/src/Pure/General/file.scala Fri Jul 27 14:15:04 2012 +0200 +++ b/src/Pure/General/file.scala Fri Jul 27 14:22:32 2012 +0200 @@ -35,6 +35,19 @@ def read(path: Path): String = read(path.file) + /* try_read */ + + def try_read(paths: Seq[Path]): String = + { + val buf = new StringBuilder + for (path <- paths if path.is_file) { + buf.append(read(path)) + buf.append('\n') + } + buf.toString + } + + /* write */ private def write_file(file: JFile, text: CharSequence, gzip: Boolean)