Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
How about readText()? We've already got this...
file = new File("foo.txt")
List list = file.readLines()
maybe we should have this too
String text = file.readText()
Then you could do something simple like
file = new File("foo.txt")
text = file.readText()
text.replace("foo", "bar")
file.writeText(text)