ExternalStream.st
changeset 11751 1e75c54748ef
parent 11651 a2f6ca848f35
child 12395 1db7ea277c93
child 17711 39faaaf888b4
--- a/ExternalStream.st	Mon Jun 08 18:35:41 2009 +0200
+++ b/ExternalStream.st	Mon Jun 08 18:36:09 2009 +0200
@@ -2020,6 +2020,13 @@
     ^ text
 !
 
+contentsAsString
+    "to compensate for the bad naming, use this to make things explicit.
+     See also #contents, which returns the lines as stringCollection for textFiles."
+
+    ^ self contentsOfEntireFile
+!
+
 contentsOfEntireFile
     "ST-80 compatibility: return contents as a String (or byteArray, if in binary mode).
      See also #contents, which returns the lines as stringCollection for text files."
@@ -6095,7 +6102,7 @@
 !ExternalStream class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ExternalStream.st,v 1.321 2009-03-18 16:30:23 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ExternalStream.st,v 1.322 2009-06-08 16:36:09 stefan Exp $'
 ! !
 
 ExternalStream initialize!