1.create file on floopy disk and write contents:
-> pdev=fdDevCreate(0,0,0,0)     /* A:,1.44M,whole disk,offset */
-> dosFsMkfs("/fd0",pdev)  
-> fd=creat("/fd0/myfile",2)  or   -> fp=fopen("/fd0/myfile","w")
-> buf="what you want to write to file" 
-> write(fd,buf,strlen(buf)+1)  or -> fprintf(fp,buf)
-> close(fd)    or  -> fclose(fp)

阅读原文

相关文章:

  • 2021-05-30
  • 2021-06-19
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-05-06
  • 2022-01-29
  • 2022-12-23
相关资源
相似解决方案