摘要: 阅读全文
posted @ 2020-07-13 18:20 酒沉吟 阅读(247) 评论(0) 推荐(0)
摘要: file ,err :=os.Open("d:\\aaa.txt") // 打开文件句柄 if err!=nil{ fmt.Println("打开文件出错") }else { fmt.Println("文件存在") } read := bufio.NewReader(file) // 创建文件读取对 阅读全文
posted @ 2020-07-13 12:58 酒沉吟 阅读(132) 评论(0) 推荐(0)