|
-
May 4th, 2001, 01:37 PM
#1
Thread Starter
Hyperactive Member
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
===========================
-
May 4th, 2001, 03:02 PM
#2
-
May 5th, 2001, 03:49 AM
#3
Thread Starter
Hyperactive Member
Thanks
Thanks alot I will try figure them out.
===========================
Kourosh Gonabadi
VB Programmer 
C++ Newbie 
Graphic Designer
===========================
-
May 5th, 2001, 10:25 AM
#4
Frenzied Member
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);
-
May 5th, 2001, 06:44 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|