如何读取小扇区中的文件以发送到外部设备。 [英] How to read a file in small sectors to send to an external device.

查看:72
本文介绍了如何读取小扇区中的文件以发送到外部设备。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个任意文件(例如PDF文件)从我的PC传输到外部设备(如闪存),然后使用预定义的API,然后粘贴在其他地方。我可以每次发送 每次传输最多256个字节。我想知道应该使用
来正确读取数据的函数。并且应该将该文件的其他信息保存到设备中以使其成功返回。(正如微软有一个MSD或类似的东西可以通过
USB接口控制nand闪存设备?)

I want to transfer an arbitrary file (say a PDF file) from my PC to an external device (like a flash) with a predefined API and then paste at back somewhere else. I can send each time  at most 256 bytes per transfer. I want to know what functions should be used to read the data correctly. And what other information of the file should be saved to the device to return it back successfully.(Just as a question does Microsoft have a MSD or something like this which can control a nand flash storage device through USB interface?)

最佳 

推荐答案

大多数闪存驱动器和其他存储卡使用Windows支持的文件系统格式化。因此,您只需要在存储卡中创建一个文件并以与复制到其他磁盘驱动器相同的方式复制数据。如果您的情况不同
那么您需要解释。存储卡的格式是否不同?如果是这样,那么你需要知道那是什么。数字"256"在哪里?来自?你为什么这么说?
Most flash drives and other memory cards are formatted with a file system supported by Windows. So you just need to create a file in the memory card and copy the data the same way as if you were copying to some other disk drive. If your situation is different then you need to explain. Is the memory card formatted differently? If so then you need to know what that is. Where does the number "256" come from? Why do you say that?


这篇关于如何读取小扇区中的文件以发送到外部设备。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆