1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help required with binary file

Discussion in 'C' started by pmitruka, Aug 31, 2010.

  1. pmitruka

    pmitruka New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello All,
    I write a structure having char * parameter to a binary file using fwrite.
    Later i open the smae binary file in other C program and try to read the structure data back to it using fread.
    the problem comes when i try to fprint the char * variable using %s format.
    Please help....
    error:Access violation reading location
     

Share This Page