Create A New Text File


            #include<stdio.h>        
            main()
            {
                FILE *fp;
                clrscr();
        
                fp = fopen("any.txt", "wt");
                fprintf(fp, "hello india");
        
                fprintf(fp, "\n form of Program");
                getch();
            }
        

Output: