Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main = do
- putStr "Source: "
- srcPath <- getLine
- putStr "Destination: "
- destPath <- getLine
- putStrLn ("Copying from " ++ srcPath ++ " to " ++ destPath ++ "...")
- contents <- readFile srcPath
- writeFile destPath contents
- putStrLn "Finished"
- ...
- putStrLn ("Copying from " ++ srcPath ++ " to " ++ destPath ++ "...")
- contents <- readFile srcPath writeFile destPath contents
- putStrLn "Finished"
Add Comment
Please, Sign In to add comment