-
Textfiles/EOF
Please forgive my lack of knowledge of C, i am using a tutorial at Howstuffworks.com to see if i want to devote more time to learning it. On the current "lesson" they have me enter the attatched program, compile and run it. the prog. is supposed to allow the user to enter text and then signal eof by pressing CTRL-D. however, this does nothing except put the symbol for that on the screen. can anyone help me with this? basically i think what i need is to know the end of file signal for windows xp.
thanks.
-
Nvm
I searched the forum and found my answer.
-
>I searched the forum and found my answer.
Fancy that. :D
-
please share with us the answer u got
-
>please share with us the answer u got
Ctrl+D is the EOF signal for POSIX systems, on Windows you use Ctrl+Z. Strangely enough, you could have acquired that information the same way that the OP did. :rolleyes: