awesome-go/impl/files_manipulation/CreateEmptyFile.go

24 lines
228 B
Go

package main
import (
"log"
"os"
)
var (
newFile *os.File
err error
)
func main() {
/*
Boş Dosya Oluşturma (Create Empty File)
*/
newFile, err = os.Create("demo.txt")
if err != nil {
log.Fatal(err)
}
}