Guest User

Untitled

a guest
Dec 15th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "io/ioutil"
  6. )
  7.  
  8. func main() {
  9. input, rErr := ioutil.ReadFile("input.txt")
  10. if rErr != nil {
  11. fmt.Println(rErr)
  12. }
  13.  
  14. defer input.close()
  15.  
  16. output, wErr := os.Create("output.txt")
  17. if wErr != nil {
  18. fmt.Println(wErr)
  19. }
  20.  
  21. defer output.Close()
  22. }
Add Comment
Please, Sign In to add comment