#include <stdio.h>
int main() {
char *c;
printf("Enter file path:");
scanf("%s", &c);
FILE *file = fopen(c, "r");
if (file) {
size_t len = 0;
char *arr;
while (getline(&arr, &len, file) != -1) {
printf("%s", arr);
}
}
return 0;
}
Comments
Leave a comment