Results 1 to 5 of 5

Thread: How can I write data to a data file and retrive them?

  1. #1

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Unhappy How can I write data to a data file and retrive them?

    Hi, I am writing a simple database and my problem now is how to store the data into datafiles and how to retrive them at a later date. Please help it is very ergent.

    Thanks in Advance
    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  2. #2
    Megatron
    Guest
    See this link.

  3. #3

    Thread Starter
    Hyperactive Member kourosh's Avatar
    Join Date
    Aug 1999
    Location
    Vancouver, British Columbia, Canada
    Posts
    256

    Thumbs up Thanks

    Thanks alot I will try figure them out.
    ===========================
    Kourosh Gonabadi
    VB Programmer
    C++ Newbie
    Graphic Designer
    ===========================

  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Those functions are not so simple, so maybe this:

    Code:
    #include <stdio.h>
    ...
    FILE *f = fopen("filepath","r+");
    //write a char
    putc(char,f)
    //get a char
    int char = getc(f);
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  5. #5
    Megatron
    Guest
    The code might be long, but they are more suitable for a Windows environment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width