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 |