here's a very simple program:

Code:
#include<stdio.h>
#include<stdlib.h>

int main()
{
        system("cls");
        printf("\n\n\tHello, world!");
        system("pause");

        return 0;
}
...my question is, how am I going to print on my printer the program's output directly?

If it can't be done directly, how am I going to save it as a text-file (*.txt)?



Thanks in advance for your help... Merry Christmas and Happy New Year... ^.^