awesome-go/impl/files-manipulation/14-QuickWriteToFile.go

19 lines
217 B
Go
Raw Normal View History

package main
import (
"io/ioutil"
"log"
)
func main() {
/*
Hızlıca Dosya Yazma (Quick Write to File)
*/
err := ioutil.WriteFile("demo.txt", []byte("Hi!\n"), 0666)
if err != nil {
log.Fatal(err)
}
}