Source:http://www.mycplus.com/cplus.asp?CID=8
#include "stdio.h"
main( )
{
FILE *fp;
char stuff[25];
int index;
fp = fopen("TENLINES.TXT","w"); /* open for writing */
strcpy(stuff,"This is an example line.");
for (index = 1; index <= 10; index++)
fprintf(fp,"%s Line number %d\n", stuff, index);
fclose(fp); /* close the file before ending program */
}
Saturday, April 26, 2008
A simple C program for writing to a file
Posted by vaibhav at 6:39 AM 0 comments
Wednesday, April 9, 2008
B+ Tree Tutorial links.
For my DBMS course I studied the B+ tree implementation. I came across a few nice links.. I enjoyed reading the stuff and things were made pretty clear by the following links...This might be of some help to you as well..
http://www.scribd.com/doc/18211/B-TREE-TUTORIAL-PPT
http://www.seanster.com/BplusTree/BplusTree.html
http://www.ceng.metu.edu.tr/~karagoz/ceng302/302-B+tree-ind-hash.pdf
Take Care
Vaibhav
Posted by vaibhav at 7:28 AM 1 comments
Subscribe to:
Posts (Atom)