Created
April 21, 2018 01:00
-
-
Save saifsmailbox98/e335ae0b5a613f89abc81652c79e73c7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include < stdio.h > | |
| void main() { | |
| FILE * fp; | |
| char c; | |
| fp = fopen("BMSCE.txt", "w"); | |
| c = getchar(); | |
| while (c != EOF) { | |
| putc(c, fp); | |
| c = getchar(); | |
| } | |
| fclose(fp); | |
| fp = fopen("BMSCE.txt", "r"); | |
| c = getc(fp); | |
| while (c != EOF) { | |
| putchar(c); | |
| c = getc(fp); | |
| } | |
| fclose(fp); | |
| getch(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment