Go/文件io/文件读写

# 文件读写基本操做缓存 package main import ( "bufio" "fmt" "io" "os" ) func writeFile(path string){ //建立或截断打开文件 f,err := os.Create(path) if err != nil{ return } defer f.Close() f.WriteString("aa
相关文章
相关标签/搜索