file Handling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nishadp
    New Member
    • Oct 2007
    • 1

    #1

    file Handling

    hi all,

    I want know that the function memcpy can be used to read files.

    i tried it with memcpy the out is not correct. it is correct when working with character array.

    with thanks and regards

    Nishad.
  • ruskalym
    New Member
    • Sep 2007
    • 65

    #2
    Hello,

    If you open your file through open(), then use read() and write().
    If you open your file through fopen(), then use fread() and fwrite().

    Comment

    Working...