1) What is the difference between these two functions:
I know that fscanf is used to read files, but I see a lot of fscanf in books, just to read from the stdin. Isn't better use scanf, once that is smaller?Code:
fscan( stdin , ¨%d¨, integer );
scanf( ¨%d¨ , &integer );
2) How can I simulate an EOF from the console? Supposing that I want to make a program that can read from the console or a file?
Thanks for all replys!! :)