FOPEN opening a File In C Programming Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
      FILE *f;
      char *str;
      clrscr();
      f=fopen("tutor.c","r");
      if(f==NULL)
      {
	  printf("\nunable to open :");
	  exit();
      }
      fgets(str,1000,f);
      puts(str);
      getch();
      fclose(f);
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming