Using this program you can read particular block of sectors using C language
#include <stdio.h>
#include <conio.h>
#include <process.h>
#include <dos.h>
void main(void)
{
int i, strt, ch_out, sector;
char buf[512];
clrscr();
printf("Insert a diskette into drive A and press any key\n");
getch();
for(sector = 200;sector<210;sector++)
{
if (absread(0, 1, sector, &buf) != 0)
{
perror("Disk problem");
exit(1);
}
printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
printf("%s",buf);
printf("\n***********************************************************\n");
getch();
}
}
0 comments:
Post a Comment
You are most welcome for making comments here. I will consider your view and will reply you soon.