in C i am making a project in which I have to save the date %26amp; occasion related to that day
I want to know how I can effectively store this record?
in future i have to retrieve it also?
please help..............
How to save records in C language %26amp; effective way to retrieve them up?
Try something like:
/* fopen example */
#include %26lt;stdio.h%26gt;
int main ()
{
FILE * pFile;
pFile = fopen ("myfile.txt","w");
if (pFile!=NULL)
{
fputs ("fopen example",pFile);
fclose (pFile);
}
return 0;
}
Reply:A database seems like the logical choice. However you could just as easily store the information in a flat text file.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment