Skip to content

Instantly share code, notes, and snippets.

@nicolasff
Created February 5, 2010 20:52
Show Gist options
  • Save nicolasff/296216 to your computer and use it in GitHub Desktop.
Save nicolasff/296216 to your computer and use it in GitHub Desktop.
fileCopyNoComment infile outfile = do
contents <- readFile infile
let out = map (fst . break (== '%')) $ lines contents
writeFile outfile $ unlines out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment