read and write data onto floppy

Programming, for all ages and all languages.
Post Reply
aditigupta
Posts: 5
Joined: Wed Jul 11, 2007 11:15 pm

read and write data onto floppy

Post 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
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

Can you give us a bit more information, like more code (i.e how your reading the data from the file).
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
aditigupta
Posts: 5
Joined: Wed Jul 11, 2007 11:15 pm

Post by aditigupta »

this is the code.......

see if u can help
Attachments
READDAT4.CPP
(1.61 KiB) Downloaded 100 times
Ninjarider
Member
Member
Posts: 62
Joined: Fri Jun 29, 2007 8:36 pm

Post 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.
Post Reply