翻译Saving Files

Saving Files

Android uses a file system that's similar to disk-based file systems on other platforms. This lesson describe show to work with the Android file system to read and write files with theFileAPIs.

A File object is suited to reading or writing large amounts of data instart-to-finish order without skipping around. For example, it's good for image files oranything exchanged over a network.

This lesson shows how to perform basic file-related tasks in your app.The lesson assumes that you are familiar with the basics of the Linux file system and thestandard file input/output APIs injava.io.


译文:

保存文件

课程教会你去做

1.选择内部存储或者外部存储

2.获得外部存储权限

3.在内部存储器中保存一个文件

4.在外部存储器中保存一个文件

5.查询空闲空间

6.删除一个文件

你还应该阅读

使用内部存储器

使用外部存储器

安卓系统使用的文件系统类似于其他平台上的基于磁盘的文件系统这节内容描述显示使用Android与theFileAPIs文件系统来读取和写入文件。

一个文件对象适合阅读从头到尾的大量数据不用跳过。例如,它有益于图像文件oranything通过网络交换。

这节内容展示了如何在你应用上执行基本的与文件相关的任务。还帮你熟悉基本的Linux文件系统和标准文件的输入/输出在java.io中。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值