Spitting out a lazy seq to file???

2011-08-16 Thread Thomas
Hi everyone, I have been struggling with this, hopefully, simple problem now for quite sometime, What I want to do is: *) read a file line by line *) modify each line *) write it back to a different file This is a bit of sample code that reproduces the problem:

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Ken Wesson
On Tue, Aug 16, 2011 at 11:26 AM, Thomas th.vanderv...@gmail.com wrote: Hi everyone, I have been struggling with this, hopefully, simple problem now for quite sometime, What I want to do is: *) read a file line by line *) modify each line *) write it back to a different file This is a

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Meikel Brandmeyer
Hi, Am 16.08.2011 um 17:26 schrieb Thomas: I have been struggling with this, hopefully, simple problem now for quite sometime, What I want to do is: *) read a file line by line *) modify each line *) write it back to a different file This is a bit of sample code that reproduces the

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Rasmus Svensson
2011/8/16 Thomas th.vanderv...@gmail.com: Hi everyone, I have been struggling with this, hopefully, simple problem now for quite sometime, What I want to do is: *) read a file line by line *) modify each line *) write it back to a different file This is a bit of sample code that

Re: Spitting out a lazy seq to file???

2011-08-16 Thread Armando Blancas
You can put the line break back into each line ( added stuff\n) and then do: (spit output.txt (reduce str (map change-line old-data))) On Aug 16, 8:26 am, Thomas th.vanderv...@gmail.com wrote: Hi everyone, I have been struggling with this, hopefully, simple problem now for quite sometime,