Help required with binary file

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

  1. pmitruka

    pmitruka New Member

    Aug 31, 2010
    Likes Received:
    Trophy Points:
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice