Articles
Home
Bride
Engagement
Weddings
Inspiration
Beauty
Hair
Makeup
Fashion
Fall
Summer
Spring
Winter
Life
Travels
Diet
Faith
Products
Mens Corner
About Us
About Us
Sitemap
Contact Us
Write a program to read data from a file.
4/20/2013 01:26:00 am
Unknown
0 Comments
#include <stdio.h>
#include <conio.h>
int main()
{
FILE *fp;
char a;
fp=fopen("file_name.txt", "r");
while(a!=EOF)
{
a=fgetc(fp);
printf("%c", a);
}
getch();
}
Share this post:
Newer Post
Home
Older Post
fb page
Thegenesisofstyle
Advertisements
Popular Posts
Write a program to get a number from user and print on screen in c language
Write a program to check whether the given number is palindrome or not?
Programe to print the value of EOF
Fundamentals of C Language Tutorial#1
Write a program to print your name, car name, and its number through structure in c
Write a program to show the size of char type variable and use of pointers in c language.
write a Program to Store values of two variables through pointer .
Code Of This Shape . 1***** 12**** 123*** 1234** 12345* 123456
Write a Program Through Structure To Print a Name,Rollnumber,Account Number,And Balance
Write a program to print factorial using while loop.
Google Ads
Influencer
Translate