怎么将一个文件写入软盘的固定几个扇区?
请多多指教!谢谢 why u ask this again?and where is u old post? 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. I think you can use command dd. he need a simple code, there is already one.
页:
[1]