Saturday, April 26, 2008

A simple C program for writing to a file

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 */
}

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