Hi all, This isn't as easy as the title sounds What I have (this is an experiment) A file containing something like the one below

Code

rbla blabla ( bla ) bla bla = bla bla,bla

ok, crazy huh, well what I'm in need of doing is randomly placing a new line after each special character. So the outcome could be:

Code

rbla blabla ( bla ) bla bla = bla bla,bla

or

Code

rbla blabla ( bla ) bla bla = bla bla, bla

and so on.. after this, i want it to be saved to it's original file. but the catch is, that next time it deals with the modified content it will rebuild it back to how it was in the very beginning, removing the new lines and putting them back to how they were originally, preventing it from being randomized twice.

thanks .. i know it's allot to ask, either this or i'll be posting on freelancers

It is impossible to undo the transformation because there is no way to tell new newlines from original ones. Why not make a back-up file? The existence of the back-up would tell you that the file had been processed at least once. Good Luck, Bill