#include <stdio.h>
main( )
{
FILE *ptr;
char str[30];
ptr = fopen ("Data.tc","r");
clrscr();
if (ptr == NULL)
printf ("unable to open file \ n");
else
{
printf ("File is succesfully opened \n");
fscanf(ptr,"%s",&str);

printf("string = %s",str);
}
getch();
fclose (ptr);
}

Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
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
 
 

Program to read data from a file.

 

 

 

 

 

 

 


 




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