Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- FILE* input = fopen("test.txt", "r");
- if (input == NULL){
- printf("Error opening input file. Exiting program\n");
- return -1;
- }
- int rasa = 0;
- char *lastAndFirst = "hello";
- printf("\nHere1\n");
- fscanf(input, "%s", lastAndFirst); //last andFirst is sometshing like [marry,Jane'0']
- // Close the input file
- fclose(input);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement