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
Programe to print the value of EOF
Fundamentals of C Language Tutorial#1
Code Of This Shape . 1***** 12**** 123*** 1234** 12345* 123456
Write a program in assembly language to get ASCII and convert it into Character.
Write a program to show the size of char type variable and use of pointers in c language.
Create a class of student, get student name and age and print on screen using setter and getter function.
Get a string from user and convert it into upper case
Write a program in c language to convert weight in grams from kilograms using function
Print Counting From 1 to 100 without Loop
Square Shape Code
Google Ads
Influencer
Translate