Monday, March 30, 2015

Versioned files in Pharo

Nice project from Norbert to provide versioned files:  

'test.text' asVersionedFile writeStreamDo: [:s | s nextPutAll: 'HelloWorld' ]

will create files:

  •      test.txt.1 
  •      test.txt.2 
  •      ... 


 anytime you run it. And a test.txt.seq with the current number. Useful.

No comments: