Re: Changing write output file on the fly

2015-07-31 Thread Marcin Jurczuk
ticles/cookbooks/files_and_directories.html> and > this blog post <http://nakkaya.com/2010/06/15/clojure-io-cookbook/> look > like they might be helpful. > > On Friday, July 31, 2015 at 7:52:07 AM UTC-5, Marcin Jurczuk wrote: >> >> Hi all, >> >> This i

Re: Changing write output file on the fly

2015-07-31 Thread Marcin Jurczuk
ter (io/writer filename) > }))) > (:writer @cache > > Note that I'm using the locking macro to ensure that the function cannot > be executed simultaneously by multiple threads. > > - James > > > On 31 July 2015 at 13:23, Marcin Jurczuk > &g

Changing write output file on the fly

2015-07-31 Thread Marcin Jurczuk
Hi all, This is my first post here so please be compassionate :) I'm evaluating clojure for some of my purposes and I've stuck on task that I don't know to handle. I have applicatin that is receiving a lot of data and writing some results to a file. However once per hour this output file must