read and write data onto floppy
Posted: Wed Jul 11, 2007 11:21 pm
hi
actually i want to read a sector from a floppy and then write it to a file in the floppy only.....
i m reading the sector with the help of absread and writing it to a file using this loop........
for (i=0; i<512; i++)
{
ch_out = buf;
fprintf(fnew1,"%c",ch_out);
}
but the format in which i m getting the data is very wierd.........its not the actual data........
so help me please
actually i want to read a sector from a floppy and then write it to a file in the floppy only.....
i m reading the sector with the help of absread and writing it to a file using this loop........
for (i=0; i<512; i++)
{
ch_out = buf;
fprintf(fnew1,"%c",ch_out);
}
but the format in which i m getting the data is very wierd.........its not the actual data........
so help me please