// 目的資料夾一定要存在,否則不會自動幫你建立
// 如果原本已經有檔案在的話,會覆蓋掉


package main

import (
    "bufio"
    "os"
)


func main() {
    d1 := []byte("hello\ngo\n")
    ioutil.WriteFile("C:/Audio/B.txt", d1, os.ModeAppend)
}








arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()