cool!
I thought you were doing it after the beer :) but it was before :)
Stef


On Aug 29, 2012, at 2:20 PM, Sven Van Caekenberghe wrote:

> Hi,
> 
> Xtreams (the port from VW done by Nicolas Celier) works out of the box with 
> Pharo 1.4.
> 
> To get it working on Pharo 2.0, just do the same load (ignoring the warning 
> about FileDirectory being gone).
> Next load the following changeset:
> 
> ---
> 
> 'From Pharo2.0a of ''18 April 2012'' [Latest update: #20245] on 29 August 
> 2012 at 2:08:32 pm'!
> 
> 
> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: 
> 'SvenVanCaekenberghe 8/29/2012 10:22'!
> appending
>       | handle |
>       handle := XTIOHandle forFiles open: self resolve fullName forWrite: 
> true.
>       ^ handle writing
>               position: handle fileSize;
>               isPositionable: false;
>               yourself! !
> 
> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: 
> 'SvenVanCaekenberghe 8/29/2012 10:22'!
> reading
>       ^ (XTIOHandle forFiles new open: self resolve fullName forWrite: false) 
> reading! !
> 
> !AbstractFileReference methodsFor: '*xtreams-terminals-converting' stamp: 
> 'SvenVanCaekenberghe 8/29/2012 10:24'!
> writing       
>       ^ (XTIOHandle forFiles new open: self resolve fullName forWrite: true) 
> writing! !
> 
> ---
> 
> Next, change the following test setup method:
> 
> ---
> 
> XTFileReadingWritingTest>>#setUp
> 
>       file := (self class name , '-' , testSelector) asFileReference.
>       output := file writing.
>       input := nil
> 
> ---
> 
> Now all tests are green !
> 
> Thanks, Camillo and Martin.
> 
> From ESUG,
> 
> Sven


Reply via email to