Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- int main()
- {
- struct employee
- {
- char name[15];
- int ID;
- };
- struct customer
- {
- char name[15];
- int ID;
- double balance; //Might need to be a float data type
- };
- char file[25];
- printf("What is the name of the file you wish to open? \n");
- scanf("%s", file);
- FILE *fopen(const char * file, const char * r);
- char *fgets(char *buf, int n, FILE *fp);
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment