Hello people i need your help:
I got this code
My problem is that although animalist.txt is in the same folder my program runs i don't get the contents of my text and i just have to press ctrl+C to end my program.Code:#include<stdio.h> int main() { FILE *f; f=fopen("animalist.txt","r"); getchar(); return 0; }
Moreover,i want my program to ask me which path to navigate then give me an "ls" of the files that exist in the directory i chose and finaly open a file of my choice?Any ideas? :/