-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileHandling#1.c
More file actions
15 lines (15 loc) · 972 Bytes
/
FileHandling#1.c
File metadata and controls
15 lines (15 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
int main (void)
{
printf("Check the file!!\n"); // Printing String to the screen
int num; // Declearing the variable
// FILE *file1; // Created a Pointer that points to the file
// file1 = fopen("file1.txt","r"); // Specfiy the file and mode
// fprintf(file1,"13");
printf("Value is %d",num);
// fetching value from the file and store that value in variable "num"
// fclose(file1); // Closing the file
// fflush(file1);
// Print the value that stored in variable "num"
return 0;
}