<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt"><br>I wrote a simple program: it reads the contents from standard in and reverses the order of the lines. I imagine there are many cleaner ways to do this. Anybody willing to post some rewrites?<br><br>Thanks,<br>Tim<br><br><br>main = interact reverseFile<br>reverseFile s = unlines $ lines $ foldr combineStr [] (lines s) <br>combineStr s1 s2 = s2 ++ "\n" ++ s1<br><br></div></body></html>