QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1451|回复: 4

怎么将一个文件写入软盘的固定几个扇区?

[复制链接]
发表于 2003-5-27 23:24:46 | 显示全部楼层 |阅读模式
请多多指教!谢谢
发表于 2003-5-28 00:26:18 | 显示全部楼层
why u ask this again?
and where is u old post?
回复

使用道具 举报

发表于 2003-5-28 00:45:33 | 显示全部楼层
u can only write data to a sector. 010101 bits.
1) u need write to a sectot to record where is u file, the size,... some metadata.
2) then u need write the data of file to certain sector.

about the write,
open /dev/fd0,
lseek,
write.
just like the jjww code. u will get the same answer even u ask several times here.

Can u post u instructor's ORIGINAL requirement here? Let us see if have a solution.
回复

使用道具 举报

发表于 2003-5-28 17:31:07 | 显示全部楼层
I think you can use command dd.
回复

使用道具 举报

发表于 2003-5-28 21:25:40 | 显示全部楼层
he need a simple code, there is already one.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 04:21 , Processed in 0.038798 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表