New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Resources » Articles/Knowledge Sharing » Computer & Technology »

File handling program in C


Posted Date: 04 Jun 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology
Author: Avdhut SonpethkarMember Level: Gold    
Rating: 3 out of 53 out of 53 out of 5Points: 1



#include
#include
void main()
{
FILE *fp,*cp; char ch[50];
clrscr();
fp=fopen("g:\\guest\\lekh.txt","r");
cp=fopen("g:\\guest\\summer.txt","a");
if(fp==NULL||cp==NULL)
{
printf("cannot open the file");
exit();
}
while(!feof(fp))
{
fscanf(fp,"%s",ch);
fprintf(cp,"%s ",ch);
printf("%s ",ch);
}
fprintf(cp,"\n");
fclose(fp);
fclose(cp);
getch();
}



Responses

Author: Lenin    05 Jun 2008Member Level: Diamond   Points : 2
interesting article , buddy , continue to contribute more.
wishing gud future in ISC .
Always honesty pays
Think different
WINNERS DO NOT DO DIFFERENT THINGS, BUT THEY DO THINGS DIFFERENTLY
Always encourage the new mwmbers ..that is the energydrink for them ..me too


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Fun with circle in C
Previous Resource: Abbreviation related to Computer & Technology
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
More Resources



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.