golang 文件操作 创建 读写 复制移动 权限 删除

论坛 期权论坛     
选择匿名的用户   2021-5-30 02:54   851   0
<p id="main-toc"><strong>目录</strong></p>
<p id="介绍-toc" style="margin-left:40px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E4%BB%8B%E7%BB%8D">介绍</a></p>
<p id="基本操作-toc" style="margin-left:40px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C">基本操作</a></p>
<p id="%E5%88%9B%E5%BB%BA%E7%A9%BA%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%88%9B%E5%BB%BA%E7%A9%BA%E6%96%87%E4%BB%B6">创建空文件</a></p>
<p id="Truncate%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#Truncate%E6%96%87%E4%BB%B6">Truncate文件</a></p>
<p id="%E5%BE%97%E5%88%B0%E6%96%87%E4%BB%B6%E4%BF%A1%E6%81%AF-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%BE%97%E5%88%B0%E6%96%87%E4%BB%B6%E4%BF%A1%E6%81%AF">得到文件信息</a></p>
<p id="%E9%87%8D%E5%91%BD%E5%90%8D%E5%92%8C%E7%A7%BB%E5%8A%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E9%87%8D%E5%91%BD%E5%90%8D%E5%92%8C%E7%A7%BB%E5%8A%A8">重命名和移动</a></p>
<p id="%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6">删除文件</a></p>
<p id="%E6%89%93%E5%BC%80%E5%92%8C%E5%85%B3%E9%97%AD%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E6%89%93%E5%BC%80%E5%92%8C%E5%85%B3%E9%97%AD%E6%96%87%E4%BB%B6">打开和关闭文件</a></p>
<p id="%E6%A3%80%E6%9F%A5%E6%96%87%E4%BB%B6%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E6%A3%80%E6%9F%A5%E6%96%87%E4%BB%B6%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8">检查文件是否存在</a></p>
<p id="%E6%A3%80%E6%9F%A5%E8%AF%BB%E5%86%99%E6%9D%83%E9%99%90-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E6%A3%80%E6%9F%A5%E8%AF%BB%E5%86%99%E6%9D%83%E9%99%90">检查读写权限</a></p>
<p id="%E6%94%B9%E5%8F%98%E6%9D%83%E9%99%90%E3%80%81%E6%8B%A5%E6%9C%89%E8%80%85%E3%80%81%E6%97%B6%E9%97%B4%E6%88%B3-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E6%94%B9%E5%8F%98%E6%9D%83%E9%99%90%E3%80%81%E6%8B%A5%E6%9C%89%E8%80%85%E3%80%81%E6%97%B6%E9%97%B4%E6%88%B3">改变权限、拥有者、时间戳</a></p>
<p id="%E7%A1%AC%E9%93%BE%E6%8E%A5%E5%92%8C%E8%BD%AF%E9%93%BE%E6%8E%A5-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E7%A1%AC%E9%93%BE%E6%8E%A5%E5%92%8C%E8%BD%AF%E9%93%BE%E6%8E%A5">硬链接和软链接</a></p>
<p id="读写-toc" style="margin-left:40px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%AF%BB%E5%86%99">读写</a></p>
<p id="%E5%A4%8D%E5%88%B6%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%A4%8D%E5%88%B6%E6%96%87%E4%BB%B6">复制文件</a></p>
<p id="%E8%B7%B3%E8%BD%AC%E5%88%B0%E6%96%87%E4%BB%B6%E6%8C%87%E5%AE%9A%E4%BD%8D%E7%BD%AE(Seek)-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%B7%B3%E8%BD%AC%E5%88%B0%E6%96%87%E4%BB%B6%E6%8C%87%E5%AE%9A%E4%BD%8D%E7%BD%AE%28Seek%29">跳转到文件指定位置(Seek)</a></p>
<p id="%E5%86%99%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%86%99%E6%96%87%E4%BB%B6">写文件</a></p>
<p id="%E5%BF%AB%E5%86%99%E6%96%87%E4%BB%B6-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%BF%AB%E5%86%99%E6%96%87%E4%BB%B6">快写文件</a></p>
<p id="%E4%BD%BF%E7%94%A8%E7%BC%93%E5%AD%98%E5%86%99-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E4%BD%BF%E7%94%A8%E7%BC%93%E5%AD%98%E5%86%99">使用缓存写</a></p>
<p id="%E8%AF%BB%E5%8F%96%E6%9C%80%E5%A4%9AN%E4%B8%AA%E5%AD%97%E8%8A%82-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%AF%BB%E5%8F%96%E6%9C%80%E5%A4%9AN%E4%B8%AA%E5%AD%97%E8%8A%82">读取最多N个字节</a></p>
<p id="%E8%AF%BB%E5%8F%96%E6%AD%A3%E5%A5%BDN%E4%B8%AA%E5%AD%97%E8%8A%82-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%AF%BB%E5%8F%96%E6%AD%A3%E5%A5%BDN%E4%B8%AA%E5%AD%97%E8%8A%82">读取正好N个字节</a></p>
<p id="%E8%AF%BB%E5%8F%96%E8%87%B3%E5%B0%91N%E4%B8%AA%E5%AD%97%E8%8A%82-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%AF%BB%E5%8F%96%E8%87%B3%E5%B0%91N%E4%B8%AA%E5%AD%97%E8%8A%82">读取至少N个字节</a></p>
<p id="%E8%AF%BB%E5%8F%96%E5%85%A8%E9%83%A8%E5%AD%97%E8%8A%82-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E8%AF%BB%E5%8F%96%E5%85%A8%E9%83%A8%E5%AD%97%E8%8A%82">读取全部字节</a></p>
<p id="%E5%BF%AB%E8%AF%BB%E5%88%B0%E5%86%85%E5%AD%98-toc" style="margin-left:80px;"><a href="https://blog.csdn.net/whatday/article/details/109311345#%E5%BF%AB%E8%AF%BB%E5%88%B0%E5%86%85%E5%AD%98">快读到内存</a></p>
<p id="%E4%BD%BF%E7%94%A8%E7%BC%93%E5%AD%98%E8%AF%BB-toc" style="margin-left:80px;"><a href="https://blog.cs
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP