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
Printable View
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
See this link.
Thanks alot I will try figure them out. :cool:
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);
The code might be long, but they are more suitable for a Windows environment.