Filename.st
changeset 10780 6223f4f77b47
parent 10779 5e5c30426664
child 10793 0475c364e80a
equal deleted inserted replaced
10779:5e5c30426664 10780:6223f4f77b47
  5073     "Modified: / 2.7.1996 / 12:49:45 / stefan"
  5073     "Modified: / 2.7.1996 / 12:49:45 / stefan"
  5074     "Created: / 11.7.1996 / 14:09:11 / cg"
  5074     "Created: / 11.7.1996 / 14:09:11 / cg"
  5075     "Modified: / 15.10.1998 / 11:41:45 / cg"
  5075     "Modified: / 15.10.1998 / 11:41:45 / cg"
  5076 !
  5076 !
  5077 
  5077 
       
  5078 contentsAsString
       
  5079     "to compensate for the bad naming, use this to make things explicit.
       
  5080      See also #contents, which returns the lines as stringCollection for textFiles."
       
  5081 
       
  5082     ^ self contentsAsString
       
  5083 
       
  5084     "
       
  5085      'Makefile' asFilename contentsOfEntireFile
       
  5086      'foobar' asFilename contentsOfEntireFile
       
  5087     "
       
  5088 
       
  5089     "Modified: / 02-07-1996 / 12:49:45 / stefan"
       
  5090     "Created: / 08-11-2007 / 13:29:59 / cg"
       
  5091 !
       
  5092 
  5078 contentsOfEntireFile
  5093 contentsOfEntireFile
  5079     "return the contents of the file as a string;
  5094     "return the contents of the file as a string;
  5080      Raises an error, if the file is unreadable/non-existing.
  5095      Raises an error, if the file is unreadable/non-existing.
  5081      See also #contents, which returns the lines as stringCollection for textFiles.
  5096      See also #contents, which returns the lines as stringCollection for textFiles.
  5082      CAVEAT: bad naming - but req'd for VW compatibility."
  5097      CAVEAT: bad naming - but req'd for VW compatibility."
  5515 ! !
  5530 ! !
  5516 
  5531 
  5517 !Filename class methodsFor:'documentation'!
  5532 !Filename class methodsFor:'documentation'!
  5518 
  5533 
  5519 version
  5534 version
  5520     ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.319 2007-11-08 12:29:07 cg Exp $'
  5535     ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.320 2007-11-08 12:30:16 cg Exp $'
  5521 ! !
  5536 ! !
  5522 
  5537 
  5523 Filename initialize!
  5538 Filename initialize!