The solution appears to be good, I did wonder in the first example why the file was never opened, but it was closed in the end. You have to always do an fopen before you do the fclose. It appears that the buffer will also read a 0.txt file as well as the 1.txt, 2.txt....., n.txt. Should there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.