Page 1 of 1

read and write data onto floppy

Posted: Wed Jul 11, 2007 11:21 pm
by aditigupta
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

Posted: Thu Jul 12, 2007 12:07 am
by B.E
Can you give us a bit more information, like more code (i.e how your reading the data from the file).

Posted: Thu Jul 12, 2007 2:56 am
by aditigupta
this is the code.......

see if u can help

Posted: Fri Jul 13, 2007 8:30 pm
by Ninjarider
what os are we working with.

if you could also post your code instead of attaching it. i am not able to download stuff to this box.