Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
#include<stdio.h>
main( )
{
char in_name[25], out_name[25];
FILE *in_file, *out_file;
int c;
in_file = fopen("data.tc", "r");
if(in_file == NULL)
printf ("could not open %s for reading \n", in_name);
else
out_file = fopen ("result.tc","w");
if (out_file == NULL)
printf ("could not open file for writing");
while ((c = getc (in_file)) != EOF)
putc (c,out_file);
printf ("file has been copied \n");
getch();
}
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

Use of fget c and fput functions to make a copy of a text file junk to terminate the program enters a blank line.

 

 

 

 

 

 

 

 

 


1 Program that opens reading file and closes the file.
2 Program to write the values on a file.
3 Program to read data from a file.
4 Program that reads files and displays them on the screen
5 Program to demonstrate the use of fe of function
6 List the contents of a file on the screen, using fgets to read the file a character at a time.
7 Use of fget c and fput functions to make a copy of a text file junk to terminate the program enters a blank line.
8 Program that reads strings from the keyboard and writes them to file junk to terminate the program enter a blank line.
9 Program to create an address book to store address and phone numbers




 


     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement