Sie sind auf Seite 1von 4

6/3/13

Share

COPY DATA FROM ONE FILE TO ANOTHER FILE USING C PROGRAM


4

More

Next Blog Create Blog

Sign In

C programming questions and answers

C language tricky good pointers questions answers and explanation operators data types arrays structures questions functio recursion preprocessors, looping, file handling, strings questions switch case if else printf advance c linux objective types mc faq interview questions and answers with explanation and solution for freshers or beginners. Placement online written test pr numbers Armstrong Fibonacci series factorial palindrome code programs examples on c c++ tutorials and pdf
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Create projects Sql Server

Are You a Fresher? Looking for Job. Apply now for NIIT Diploma Programs & get Job-Ready! www.NIITeducation.com/Graduate C, C++, C# courses Aptech 50 lakh students trained already 65 years of expertise www.Aptech-Education.com Government Job Vacancies Find 1000's of Jobs in your City. Connect with Employers. Apply Now! Quikr.com/Government-Jobs

Search

C QUESTIONS AND ANSWERS

C program examples C interview questions and answers Data type questions Variable naming rule questions Operators questions Control flow questions Switch case questions Looping questions Pointer questions String questions Printf,Scanf questions Preprocessor questions Structure questions Commad line argument C questions in Linux C online test C mixed practice sets C tricky questions Example of recursion in c C programming forums

COPY DATA FROM ONE FILE TO ANOTHER FILE USING C PROGRAM

C TUTORIAL

Memory mapping tutorial in c

# i n c l u d e < s t d i o . h > i n tm a i n ( ) { F I L E* p , * q ; c h a rf i l e 1 [ 2 0 ] , f i l e 2 [ 2 0 ] ; c h a rc h ;
1/4

www.cquestions.com/2008/01/write-c-program-to-find-copy-data-from.html

6/3/13
Variables tutorial in c Data types tutorial in c

COPY DATA FROM ONE FILE TO ANOTHER FILE USING C PROGRAM

Storage classes tutorial in c Looping tutorial in c Pointers tutorial in c Function tutorial in c Array tutorial in c Preprocessor tutorial in c Advanced c tutorial

POPULAR POSTS

C program examples C interview questions and answers Check given number is prime number or not using c program MULTIPLICATION OF TWO MATRICES USING C PROGRAM C multiple choice questions and answers pdf Write a c program to reverse a string Find out the perfect number using c program TO FIND FIBONACCI SERIES USING C PROGRAM Program to convert decimal to binary in c QUICK SORT USING C PROGRAM

p r i n t f ( " \ n E n t e rt h es o u r c ef i l en a m et ob ec o p i e d : " ) ; g e t s ( f i l e 1 ) ; p = f o p e n ( f i l e 1 , " r " ) ; i f ( p = = N U L L ) { p r i n t f ( " c a n n o to p e n% s " , f i l e 1 ) ; e x i t ( 0 ) ; } p r i n t f ( " \ n E n t e rt h ed e s t i n a t i o nf i l en a m e : " ) ; g e t s ( f i l e 2 ) ; q = f o p e n ( f i l e 2 , " w " ) ; i f ( q = = N U L L ) { p r i n t f ( " c a n n o to p e n% s " , f i l e 2 ) ; e x i t ( 0 ) ; } w h i l e ( ( c h = g e t c ( p ) ) ! = E O F ) p u t c ( c h , q ) ; p r i n t f ( " \ n C O M P L E T E D " ) ; f c l o s e ( p ) ; f c l o s e ( q ) ; r e t u r n0 ; }

A l o g r i t h m :
* *

SUBSCRIBE VIA EMAIL

Enter your email address:

Subscribe

Delivered by FeedBurner

1. Write a c program to open a file and write some text and close its. 2. Write a c program to delete a file. 3. Write a c program to copy a file from one location to other location. 4. Write a c program to copy a data of file to other file. 5. Write a c program which display source code as a output. 6. Write a c program which writes string in the file. 7. Write a c program which reads string from file. 8. Write a c program which writes array in the file. 9. Write a c program which concatenate two file and write it third file. 10. Write a c program to find out size of any file. 11. Write a c program to know type of file. 12. Write a c program to know permission of any file. 13. Write a c program to know last date of modification of any file. 14. Write a c program to find size and drive of any file. 15. Big list of c program examples

C PROGRAMMING QUESTIONS AND ANSWER

C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c
STANDARD OF QUESTIONS ?

+4 Recommend this on

SUBSCRIBE TO

2 comments:
2/4

www.cquestions.com/2008/01/write-c-program-to-find-copy-data-from.html

6/3/13
Posts Comments

COPY DATA FROM ONE FILE TO ANOTHER FILE USING C PROGRAM


Anonymous 10/27/12, 10:32 AM i like these programs,please can you post more programs it will be helpful Reply
MY HEADLINES

C programming questions and answer C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c Objective questions of c Program in c language Simple program example in c language Tricky c questions and answers C programming online test C Linux interview questions and answers Looping questions in c and answers C string questions and answers with explanation C operator questions with answers Check the given number is palindrome number or not using c program C pointers questions Data type questions in c Check given number is prime number or not using c program struct bit fields questions in c C questions answers C interview questions and answers How to test palindrome in c++ Palindrome number in c++ Program of palindrome number in c++ C++ code to get sum of all odd numbers in given range

Yogesh Verma 11/25/12, 2:36 PM you forget the stdlib header file :) Reply

Links to this post


Create a Link Newer Post Subscribe to: Post Comments (Atom) Home

SHARE IT

ABOUT ME

MUST VISIT

ritesh kumar View my complete profile


Grab this Headline Animator

GOOGLE+ BADGE

C LOVER COMMUNITY

www.cquestions.com/2008/01/write-c-program-to-find-copy-data-from.html

3/4

6/3/13
Join this site
w ith Google Friend Connect

COPY DATA FROM ONE FILE TO ANOTHER FILE USING C PROGRAM

Copyright@ritesh kumar. Powered by Blogger.

www.cquestions.com/2008/01/write-c-program-to-find-copy-data-from.html

4/4

Das könnte Ihnen auch gefallen