Guest User

Untitled

a guest
Apr 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. main = do
  2. putStr "Source: "
  3. srcPath <- getLine
  4. putStr "Destination: "
  5. destPath <- getLine
  6. putStrLn ("Copying from " ++ srcPath ++ " to " ++ destPath ++ "...")
  7. contents <- readFile srcPath
  8. writeFile destPath contents
  9. putStrLn "Finished"
  10.  
  11. ...
  12. putStrLn ("Copying from " ++ srcPath ++ " to " ++ destPath ++ "...")
  13. contents <- readFile srcPath writeFile destPath contents
  14. putStrLn "Finished"
Add Comment
Please, Sign In to add comment