Here is a function to print my binary search node tree,
void printtree(struct node *tree)
{
if (tree!=NULL)
{
printtree(tree->left);
printf("%s %d\n",tree->word, tree->lineNumber);
printtree(tree->right);
}
}
How would I save what I print to a text file???????