I want to write this program. anyone please help me.?

Attachment image

1 Answer

Relevance
  • 5 months ago

    Perhaps:

    #include #include FILE *fp;

    unsigned char buf[1024];

    unsigned char st[60];

    unsigned char headno[10];

    unsigned char secno[10];

    unsigned char trackno[10];

    void main (void) {

    int i ;

    for (i=0;i<1024;i++)

    buf[i]=0;

    gets(st);

    fp=fopen(st,"wb");

    printf("Head ");

    gets(headno);

    puts (headno);

    i = biosdisk(2,0x80,atoi(headno), atoi(trackno),atoi(secno),2,buf) ;

    if (*(((char *)(&i))+1)==0) {

    fwrite(buf,2,1024,fp); fclose(fp);

    }

    else printf("Cannot Read Error# = %x",i);

    }

    Agent Derek B.

    BADGE65746

    ARA

    Geek Squad/Yahoo Answers Partnership Knowledge Partner

    07/15/2019

Still have questions? Get answers by asking now.