#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Malaysia
    Posts
    78
    Rep Power
    11

    how to modify data in the data file


    hi,
    How to retrieve and modify the data stored in a data file in visual c++??
    I hope that someone can help me :(
    Programming is interesting
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    11
    There are many standard library functions to help you with this, fopen, fread, fgets, fscanf, fwrite, fputs, fprintf, then there are the more efficient methods such as mapping to memory to avoid standard & kernel buffering, or just using system calls to avoid use of the standard C (or c++) library.

    A quick search on google will tell you everything you need to know.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Malaysia
    Posts
    78
    Rep Power
    11
    hi, thanks for ur help :)

    but my program not as simple as using all these function. But, my program is dual with controls. I am developing GUI version of inventory control system.
    If u wanna 2 have a try then i can send the program to u!!
    if ur interested pls tell me ur e-mail address

    Thanks
    Programming is interesting
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    11
    "My program is dual with controls?", I can guarantee you that these functions, or their lower level versions can be used.
    Last edited by xtor; August 18th, 2003 at 04:39 AM.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Malaysia
    Posts
    78
    Rep Power
    11
    I try oledi, but the data in the file stil cannot be modify!!
    l:(
    Programming is interesting

IMN logo majestic logo threadwatch logo seochat tools logo