can anyone help me? I need to read a file called address.txt and work with each word in there (I have one word per line to make it simple).
I am forbidden to use these functions:
Malloc, freee, fopen, fclose, fscanf,... qsort, lsearch, bsearch a hsearch I think the teacher wants us to use getchar, argv, argc or something like that.
Let's say the name of the program is test.c ____ /test.c < address.txt
If I write this as an argument when starting the program, I should be able to work with the text file. Any tips how to extract the data stored in address.txt? I have tried several times without success :/ Only fopen worked for me.
EDIT: Everything I did was fine, Code::Blocks editing program caused the problems. I tried it in Linux terminal and it worked perfectly! :)