hlf1099210 发表于 2003-5-27 23:24:46

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

请多多指教!谢谢

Dragonfly 发表于 2003-5-28 00:26:18

why u ask this again?
and where is u old post?

Dragonfly 发表于 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.

fist 发表于 2003-5-28 17:31:07

I think you can use command dd.

Dragonfly 发表于 2003-5-28 21:25:40

he need a simple code, there is already one.
页: [1]
查看完整版本: 怎么将一个文件写入软盘的固定几个扇区?