Overwrting a record

This is a discussion on Overwrting a record within the C Programming forums, part of the General Programming Boards category; Hey,
I'm wondering if anyone can help with this problem. I'm trying to overwrite a record on a customer.dat file. ...

I inputted 15 for the id and 15 for the new balance.
I commented out the flush and i got this as the output written to Customer.dat file:
ID NAME BALANCE
12343 F.Jones 0.00
1432 P.Kelly 150.50
15011 L.Byrne @0.00
15 P.Curran 850.00
1234 O.Lynch 1092.00

the orignal value for L.Byrne's balance was 1000.00

I have to be honest i'm not really that clued in to fread / fwrite and fseek so the '*3' i put in fseek is because the amount of members in my structure is that correct? I'm thinking now it might have something to do with the result i got. Plus it seems that it won't recognize the value?