Skip to content

Instantly share code, notes, and snippets.

@fcamel
Created June 25, 2009 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcamel/135882 to your computer and use it in GitHub Desktop.
Save fcamel/135882 to your computer and use it in GitHub Desktop.
import System.IO
import Data.Char(toUpper)
main = do
inh <- openFile "input.txt" ReadMode
outh <- openFile "output.txt" WriteMode
inpStr <- hGetContents inh
hPutStr outh (map toUpper inpStr)
hClose inh
hClose outh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment