printf("What file: "); fgets(textfile, 500, stdin);
I then try
I always get a null pointer returned. I have tried declaring textfile as a character pointer and an array of characters.
I was told not to use scanf so I tried using fgets. So confused. This is C btw not C++.
This post has been edited by Matty919: 10 March 2011 - 02:06 PM