package main import ( "os") func main() { f, _ := os.Create("A.txt") // 建立 A.txt 文字檔 f.WriteString("ABCD"); // 寫入 ABCD 文字}