FileStream.st
changeset 7298 9b3c69eb2c5d
parent 7261 f35fc9cee675
child 7379 3eba1d6dd8d3
equal deleted inserted replaced
7297:165148714132 7298:9b3c69eb2c5d
   461     newStream readLimit:(newStream size).
   461     newStream readLimit:(newStream size).
   462 "
   462 "
   463     ^ newStream
   463     ^ newStream
   464 ! !
   464 ! !
   465 
   465 
   466 !FileStream class methodsFor:'Compatibility - ANSI'!
   466 !FileStream class methodsFor:'Compatibility-ANSI'!
   467 
   467 
   468 write:filename
   468 write:filename
   469     "return a FileStream for new file named filename, aString.
   469     "return a FileStream for new file named filename, aString.
   470      If the file exists, it is truncated, otherwise created.
   470      If the file exists, it is truncated, otherwise created.
   471      The file is opened for read/write access.
   471      The file is opened for read/write access.
   472      Same as newFileNamed: for ANSI compatibilily"
   472      Same as newFileNamed: for ANSI compatibilily"
   473 
   473 
   474     ^ self newFileNamed:filename
   474     ^ self newFileNamed:filename
   475 ! !
   475 ! !
   476 
   476 
   477 !FileStream class methodsFor:'Compatibility - Dolphin'!
   477 !FileStream class methodsFor:'Compatibility-Dolphin'!
   478 
   478 
   479 read:filename text:text
   479 read:filename text:text
   480     "return a readonly FileStream for the existing file named filename, aString.
   480     "return a readonly FileStream for the existing file named filename, aString.
   481      If the argument, text is false, the stream is setup to read binary bytes,
   481      If the argument, text is false, the stream is setup to read binary bytes,
   482      if false, it reads characters."
   482      if false, it reads characters."
   523 	]
   523 	]
   524     ].
   524     ].
   525     ^ s
   525     ^ s
   526 ! !
   526 ! !
   527 
   527 
   528 !FileStream class methodsFor:'Compatibility - Squeak'!
   528 !FileStream class methodsFor:'Compatibility-Squeak'!
   529 
   529 
   530 readOnlyFileNamed:filename
   530 readOnlyFileNamed:filename
   531     "return a readonly FileStream for the existing file named filename, aString."
   531     "return a readonly FileStream for the existing file named filename, aString."
   532 
   532 
   533     ^ self readonlyFileNamed:filename
   533     ^ self readonlyFileNamed:filename
   534 ! !
   534 ! !
   535 
   535 
   536 !FileStream class methodsFor:'Compatibility - VW'!
   536 !FileStream class methodsFor:'Compatibility-VW'!
   537 
   537 
   538 badArgumentsSignal
   538 badArgumentsSignal
   539     ^ Error
   539     ^ Error
   540 ! !
   540 ! !
   541 
   541 
  1368 ! !
  1368 ! !
  1369 
  1369 
  1370 !FileStream class methodsFor:'documentation'!
  1370 !FileStream class methodsFor:'documentation'!
  1371 
  1371 
  1372 version
  1372 version
  1373     ^ '$Header: /cvs/stx/stx/libbasic/FileStream.st,v 1.93 2003-05-07 14:29:33 cg Exp $'
  1373     ^ '$Header: /cvs/stx/stx/libbasic/FileStream.st,v 1.94 2003-05-19 10:13:42 cg Exp $'
  1374 ! !
  1374 ! !
  1375 
  1375 
  1376 FileStream initialize!
  1376 FileStream initialize!